Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Player standing on Rope but not grounded
#1
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 ?
Reply
#2
(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,
Reply