21-03-2021, 02:44 PM
Hello!
I have two questions about phases.
1. Is there a way to get a phase of an ObiActor? I know I can set one via SetPhase() and I think I can get a phase of a ObiCollider, but what about softbodies?
2. Can I adjust phases like physics collision layers in Unity? Here's why do I need this:
I have two questions about phases.
1. Is there a way to get a phase of an ObiActor? I know I can set one via SetPhase() and I think I can get a phase of a ObiCollider, but what about softbodies?
2. Can I adjust phases like physics collision layers in Unity? Here's why do I need this:
- I need my softbody player to roll through the level, so I apply torque.
- I need the player to push other similar sized softbody opponents like they're nothing, like a golf ball pushes table tennis balls. But as I apply torque, instead of pushing, player climbs over them. Setting all frictions to zero doesn't help. Reducing opponents masses makes things worse.
- So I've attached a sphere with ObiCollider to my player.transform as a child and got it player's phase. Now the sphere does the pushing, but I need to prevent player from interacting with the opponents. But I need opponents to be able to interact with each other.