Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Speed Up Rope Tracing Attactchment?
#3
(01-06-2023, 02:56 PM)josemendez Wrote: Hi!

Depends on what kind of attachment you're using (static or dynamic) and how/when you're updating the effector/object attached to it. Could you give more info about what you're trying to do?

kind regards,


Hi thanks!
So the Particle Attachment is set to Static. 
And In Update, I am moving the effector position, relative to the body. 
Also, it should be noted the effector has a sphere renderer in it set to localPostion zero. This is where I notice the tracking issue, as the sphere of the effector is slightly ahead of the end of the rope, by a frame or two. 

So, let me explain my game. 

Imagine an octopus and the tentacle is the Obi Rope. To keep a consistent look as the player octopus moves, the effector, which is the second and last, Particle Attachment (where the first is the body), moves to a position offset to the body. This way his tentacles are localized to himself as he moves about. This is great, but that said, he moves pretty quickly and as mentioned there seems to be a slight mis step between the two positions.  

I was using Leap, on the effector (particle attachment), where step = time.deltaTime * 100, even step = 1.


If I am using Update, Lerp, is this the most accurate?
Reply


Messages In This Thread
RE: Speed Up Rope Tracing Attactchment? - by Renman3000 - 01-06-2023, 03:40 PM