Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Pooled Objects Rope Position Bug??
#3
(01-04-2023, 05:10 PM)josemendez Wrote: Hi!

Actors in Obi (this includes ropes, rods, and basically any object made out of particles) do not have a position/orientation of their own, their transform values are only used for spawning the blueprint once the actor is created. The reason for this is that you can’t determine the placement of a deformable object using a single position/orientation.

At runtime, each particle in the actor has its own position and orientation in the solver’s local space. So if you let the simulation run for a while they may end up far away from the objects’s transform.

If you want to reset all particles in an actor to the position/orientation they had when the actor was created (that is, the ones stored in the actor’s blueprint) you can use actor.ResetParticles().

Kind regards,

Hey, thanks for the answer  Tímido

I have tried rope.ResetParticles() before I post here but didn't work for me Triste 
I called that function after I've pulled the object from pool (like it should be?) . I can see the blueprint line is correct and my ropes attached transforms are correct but it looks like it has different object to attached and acting its own. I have no idea whats happening Ángel 

(The second object from the pool actually the first one)
Reply


Messages In This Thread
Pooled Objects Rope Position Bug?? - by exWitcher - 01-04-2023, 04:18 PM
RE: Pooled Objects Rope Position Bug?? - by exWitcher - 01-04-2023, 06:34 PM