[SOLVED] RigidBody : How to get Velocity?

In Unity, apart from setting Force to a RigidBody, e.g : RigidBody.AddForce(Vector3, ForceMode)
you can also get current velocity of a moving RigidBody.

Unity Script reference :

Meanwhile, I can not find a “GET” method for RigidBody class in Flax.

Is there any way to get the velocity or force of a moving RigidBody in Flax ?

You should be able to use rb.LinearVelocity and rb.AngularVelocity (where rb is your RigidBody) to get and set the velocity vector. I see it appears to be missing from the docs though.

2 Likes

Hey, you are right.
I guess I missed those properties when I code, thanks for your help!

1 Like