Hi , i’m really new to Defold. How do i get the vector of the velocity of a gameobject in Lua?
Hi @Gabriel_l, welcome to the Defold forum.
In Defold gameobjects haven’t a “velocity”. You should use the builtin physics engine (Box2D) if you want to simulate physics. Or you have to code your own script moving objects if you just need simple movement. Or, better, use go.animate if you don’t need physics interactions.
For physics read this: https://defold.com/manuals/physics/
Ciao!
3 Likes