1
votes

I have a dynamic body that constantly changes linear velocity, I want my dynamic body to act like a kinematic body which is not affected by forces and can move in a linear way. But I need to use dynamic body because I need to detect collision.

1

1 Answers

1
votes

You can call the setLinearVelocity method on your dynamic body in your render or act method - although it will be affected by gravity you will override it's velocity in every step and it will act like kinematic