05-11-2020, 12:47 PM
(This post was last modified: 05-11-2020, 12:51 PM by josemendez.)
(05-11-2020, 12:37 PM)canerozdemir Wrote: Hello,
So I am adding a rope by code and I am able to instantiate it to a degree. However, when the rope is created and after I attach the rope using ObiParticleAttachment it becomes unstable when I move either the end or the start point. It goes back and forth intensely.
Make sure you're not attaching the rope inside a collider. This will always cause instabilities, because the rope can't be simultaneously inside and outside a collider. See the last bit of: http://obi.virtualmethodstudio.com/tutor...aints.html
(05-11-2020, 12:37 PM)canerozdemir Wrote: Also, how can I set a target on the ObiParticleAttachment with code. I have a start and an end point on the blueprint and I added them by using code. However, I am not able to assign a target to ObiParticleAttachment.
There's not much involved in this. Attachments have a public "target" property that can you can get/set. So:
Code:
attachment.target = //your target transform here