Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Teleporting rope across scene causes rope to behave like slingshot)
#3
Quote:Hi,

If the solver is part of the character's hierarchy, there's no need to do any of this as changing the position of the entire character would automatically reposition the rope (since simulation is performed in the solver's local space, as stated in the manual:http://obi.virtualmethodstudio.com/tutorials/obisolver.html). Having the solver as part of the character is also recommended to avoid floating point precision issues.

If the solver is outside the character hierarchy (which isn't a good idea in general), then your script should work. Can you give a bit of context regarding how and when you're calling TeleportRope()?


The solver is part of the hierarchy of the character.

[Image: JothSI0.png] https://pasteboard.co/JothSI0.png

Between scene loads we reparent all the gear to a gameObject in a CORE scene (which is never unloaded).
After scene loads, we reparent/equip back the gear to the player.
Reply


Messages In This Thread
RE: Teleporting rope across scene causes rope to behave like slingshot) - by mandark83 - 28-08-2020, 04:05 PM