04-07-2025, 09:46 AM
(03-07-2025, 10:29 AM)quent_1982 Wrote: Hello,
I'm working on creating a rope whose length is controlled by an ObiCursor. When the player grabs the rope using a pinhole, the pinhole's position doesn't seem to follow the rope at all as its length changes. Is there a way to make the pinhole stays in the right position relative to the rope length?
Kind regards,
Hi!
You can set the position along the rope using pinhole.position. This is a normalized coordinate that runs from 0 (start of the rope) to 1 (end of the rope).
See the VineClimbController sample script used in the VineSwinging sample scene, it sets the pinhole position to attach the character to a new position along the vine.
kind regards,