29-07-2024, 12:45 PM
(This post was last modified: 29-07-2024, 12:47 PM by josemendez.)
Hi,
Maybe your solver's or your rope's transform are not at the correct position?
Like all blueprint data, the positions passed to AddControlPoint are expressed in the rope's local space. That specific sample scene you got the code from assumes the solver is placed at 0,0,0 (world's origin) and that the rope is placed at the character's position. If this is not your use case, you should account for any differences when calculating the control point's positions.
kind regards,
Maybe your solver's or your rope's transform are not at the correct position?
Like all blueprint data, the positions passed to AddControlPoint are expressed in the rope's local space. That specific sample scene you got the code from assumes the solver is placed at 0,0,0 (world's origin) and that the rope is placed at the character's position. If this is not your use case, you should account for any differences when calculating the control point's positions.
kind regards,