16-10-2020, 09:42 AM
(This post was last modified: 16-10-2020, 09:43 AM by josemendez.)
(16-10-2020, 08:06 AM)KyleJohnOConnor Wrote: Good day!
I'm trying to detect when a box collider on a certain layer has a collision with Obi Rope.
I've been trying to implement the Collision callback featured here, implementing this as a mono behavior on the same game object that has the ObiSolver.
Sadly I don't understand where the reference to ObiCollisionWorld comes from. Is there something I'm missing?
Hi there,
Quote:var world = ObiColliderWorld.GetInstance();
GetInstance() a static method that returns the only existing instance of the collider world. This is called a singleton pattern, and is widely used in programming (though there's a years-long heated debate over it, some consider it evil, some think it has its uses in certain circumstances, I'm in the second group).
cheers,