Obi Official Forum

Full Version: Player standing on Rope but not grounded
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im trying to make the Player grounded when staying on an rope like this

https://ibb.co/xg5RKTX
Im using Physics.CheckSphere(groundCheck.position, 0.1f, ground); to look for collisions with layer ground under the player but it doesnt seem to work for the rope
Any ideas how to fix ?
(26-09-2023, 12:42 PM)fevzi Wrote: [ -> ]Im using Physics.CheckSphere(groundCheck.position, 0.1f, ground); to look for collisions with layer ground under the player but it doesnt seem to work for the rope
Any ideas how to fix ?


Hi,

The Physics namespace in Unity only works with Unity's built-in physics, that is to say, rigidbodies and colliders.

Obi is an entirely separate, particle-based physics engine. It has its own spatial queries, collision callbacks, etc. See the manual for details:
http://obi.virtualmethodstudio.com/manua...sions.html
http://obi.virtualmethodstudio.com/manua...eries.html
http://obi.virtualmethodstudio.com/manua...icles.html

In your case, you want to use a spatial query to check for distance between simplices and the character position.

kind regards,