19-10-2021, 01:30 PM
(This post was last modified: 19-10-2021, 01:32 PM by josemendez.)
(19-10-2021, 01:26 PM)Matbee Wrote: In fact, is my object Obi Rope the same actor? The index of the actor is the same Obi Rope as the index in the hierarchy ??
PhoneRope1 this is essentially actors[0]
PhoneRope2 this is essentially actors[1]???? Thanks
No, actors aren't added to the solver in the same order they appear in the hierarchy. They are added in the order their Start() methods are called, so the exact order is undefined (because the order in which Unity calls Start for different objects is also undefined).
Why do you want to access the solver's internal actor array? you already have a reference to each rope, right? ropes are actors, so you can just do:
PhoneRope1.solverIndices, PhoneRope1.activeParticleCount, etc.
ObiActor is just the base class for anything that's made of particles, and that includes ropes.