Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to simulate Obi Rope physics?
#2
(21-02-2024, 06:09 PM)oleegarch Wrote: When i use in unity
Code:
Physics.Simulate(Time.fixedDeltaTime);
The Obi Rope is not simulated.

Physics.Simulate only ticks Unity's internal physics engine. It won't call FixedUpdate() for any scripts, or update other physics-related systems you may be using.

(21-02-2024, 06:09 PM)oleegarch Wrote:  Do I understand correctly that Obi Rope need to be simulated in a separate script? If it is true, how i can do this?

Correct, as it is a separate engine. Has nothing to do with Unity's built-in physics engine.

You do this by calling the ObiFixedUpdater's FixedUpdate() method manually, or even by writing your own ObiUpdater subclass that gets finer controller update cycle and physics state interpolation. See the API docs for ObiUpdater: http://obi.virtualmethodstudio.com/api.html
Reply


Messages In This Thread
How to simulate Obi Rope physics? - by oleegarch - 21-02-2024, 06:09 PM
RE: How to simulate Obi Rope physics? - by josemendez - 22-02-2024, 08:55 AM