Vector Math Blocks Extension

I’ve created a small extension to deal with vector manipulation. I’ve needed to calculate a vector between objects rather frequently in my other projects, so I threw this together to make those manipulations simpler in the future. The extension has a blocks interface, as well.

This library actually would be a nice project for students with an Algebra II or higher background to create in JavaScript (especially if you remove the blocks interface). It’s small enough to be manageable, but has some interesting math and could be incorporated into a larger project.

Extension URL (for importing into your projects): https://github.com/robo-technical-group/pxt-arcade-vector-math.git

See it in action here:

4 Likes

Exactly what I needed for my tank shooter. Now the enemies can head to the main player. Thanks!

1 Like