28-08-2020, 03:15 PM
(This post was last modified: 28-08-2020, 03:15 PM by josemendez.)
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()?
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()?