#KinematicPositionBased does not collide with Fixed rigid body (bevy_rapier2d)

1 messages · Page 1 of 1 (latest)

warm bronze
#

I've created a player unit and added RigidBody::KinematicPositionBased component to it, I move it by modifying its transform. It does not get stopped by the walls which are all RigidBody::Fixed. Why it doesn't collide? Do I need to use velocity-based kinematic body instead?

warm bronze
#

KinematicPositionBased does not collide with Fixed rigid body (bevy_rapier2d)

fringe anchor
warm bronze
fringe anchor
#

Either one should work - the main point being using something that moves based on velocity rather than position.

warm bronze
#

I'll try to use KinematicVelocityBased. Seems to be easier and more convenient than dealing with forces...