Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED - What's the better way to track Soft Body position?
#1
Hello everyone!

Does anyone knows a good way to track SB position reliably and smoothly?

https://youtu.be/rYDHcSxnrws
Here in the video you can see:
- a blue translucent SB
- a gray sphere, a child of the SB
- a camera (well, you cannot see it but it's there obviously)

SB is moved via constant AddForce(direction * force * Time.deltaTime,ForceMode.Acceleration). The sphere is just a child, no code there. The camera tracks SB transform position and lerps there with a factor of 0.1.

As you can see, the sphere is always ahead of SB and is jerking all the time, while the camera moves smoothly (not at the top speeds) but is always behind. Is there a way track that SB so it will look smooth? I don't know, maybe the average position of every particle will work. Still have to figure how this will work. But still, looking for a good way to make tracking SB as smooth as possible.
Reply


Messages In This Thread
SOLVED - What's the better way to track Soft Body position? - by the-lander - 31-08-2020, 09:46 PM