Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rope is not stable
#2
(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
Reply


Messages In This Thread
Rope is not stable - by canerozdemir - 05-11-2020, 12:37 PM
RE: Rope is not stable - by josemendez - 05-11-2020, 12:47 PM
RE: Rope is not stable - by canerozdemir - 05-11-2020, 01:01 PM
RE: Rope is not stable - by josemendez - 05-11-2020, 01:09 PM
RE: Rope is not stable - by canerozdemir - 05-11-2020, 01:17 PM
RE: Rope is not stable - by josemendez - 05-11-2020, 01:23 PM
RE: Rope is not stable - by canerozdemir - 05-11-2020, 01:26 PM