I'm looking for how to call the velocity of an object for a compute...
I thought it was : "name of the object" + .Xvelocity : P1.Xvelocity
But I can't access this value. :/
What behaviour are you using to move the object?
Physics (by using impulse)
object.physics.velocityX
object.physics.velocityY
for overall velocity use: distance(0, 0, object.physics.velocityX, object.physics.velocityY)
Develop games in your browser. Powerful, performant & highly capable.
Thanks a lot !