Hi, I am trying to create a tower defense type game. I am trying to get my "bullets" to target a tower. What is the best way to do this. We tried to modify the "Move" code with the following: let target = this.scene().find(this.attribute('Target')); let targetpos = target[0].position(); let attackvector = targetpos - pos; let unitvector = attackvector / Math.sqrt(attackvector.x*attackvector.x + attackvector.y*attackvector.y + attackvector.z*attackvector.z); _speed = unitvector; but it did not seem to work. Are we able to use the Java Script Math library or is there a better way to calculate the vector. Thanks for your help.
There are a bunch of new API methods and a lot to do with vector operations. The documentation is coming but may take a little time. In the meantime try this script I did up to find the new API https://www.buildbox.com/forum/inde...tract-some-api-details-from-bb-classes.15425/