Ask me about Galician octopus · 🇪🇸 → 🇬🇧 → 🇺🇸 →❓
| Website | https://adrianmato.com |
| Wallpapers | https://adrianmato.art |
| github-pewpew | https://adrianmato.com/pewpew |
| Website | https://adrianmato.com |
| Wallpapers | https://adrianmato.art |
| github-pewpew | https://adrianmato.com/pewpew |
Same idea but aiming for the average point between all targets. I haven't used this since Math at school 🤪
Average is calculated similarly to regular numbers: add all vectors and divide by the total number of points.
Using collision detection to target enemies. Turrets rotate and aim the latest target via an `angle lerp()` between two points 🔫
I also learned how to expose custom properties for different instances of the same object. Turrets shoot and aim at different speeds ✨
I used this to play an animation I previously created, so the whole thing interacts with the physics engine. 🪄