#Prevent momentum transfer.

1 messages · Page 1 of 1 (latest)

dry beacon
#

When my Player 1 character collides with Player 2, the other player moves in that direction until stopped. This works Vice Versa as well.
I suspect this is an issue with the rigid body.
How can I prevent this from happening?

open tartan
#

Is there friction? (floor physics material)

dry beacon
#

No, currently the floor is dictated by a if y is lower than -1 set y to -1.

#

I'm unsure how to switch to a friction system

open tartan
#

Rigidbody physics with kinematic or regular?

#

Assuming you're using non-kinematic, you'd just add a collider to the floor and some material with friction (the base physics material has a bit of friction)

#

Else if you've got your own custom gravity/grounded/friction/physics-system-overall you'll have to implement your own dampening to slow the speed down if grounded etc

dry beacon
#

I'll have to look into this in the morning since it's gotten late for me.
I'll update then, thank you.

tight belfry
#

also check linear damping

dry beacon
#

I'm using a non-kinematic rigidbody.
If I set 'Is Trigger' to false on the floor they stop after about 2 units of movement when I hold the button.
This occurs rather or not the Physics mod is active.
I was looking at other damping solutions but they stop movement elsewhere when I'm just trying to stop the momentum transfer.