Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  ObiRope Points
#12
(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.
Reply


Messages In This Thread
ObiRope Points - by Matbee - 19-10-2021, 10:26 AM
RE: ObiRope Points - by josemendez - 19-10-2021, 10:50 AM
RE: ObiRope Points - by Matbee - 19-10-2021, 11:24 AM
RE: ObiRope Points - by josemendez - 19-10-2021, 11:27 AM
RE: ObiRope Points - by Matbee - 19-10-2021, 11:00 AM
RE: ObiRope Points - by josemendez - 19-10-2021, 11:24 AM
RE: ObiRope Points - by Matbee - 19-10-2021, 11:28 AM
RE: ObiRope Points - by josemendez - 19-10-2021, 11:29 AM
RE: ObiRope Points - by Matbee - 19-10-2021, 11:47 AM
RE: ObiRope Points - by josemendez - 19-10-2021, 12:02 PM
RE: ObiRope Points - by Matbee - 19-10-2021, 01:26 PM
RE: ObiRope Points - by josemendez - 19-10-2021, 01:30 PM
RE: ObiRope Points - by Matbee - 19-10-2021, 02:36 PM
RE: ObiRope Points - by josemendez - 19-10-2021, 02:50 PM
RE: ObiRope Points - by Matbee - 19-10-2021, 02:52 PM
RE: ObiRope Points - by josemendez - 19-10-2021, 03:02 PM
RE: ObiRope Points - by Matbee - 19-10-2021, 04:23 PM
RE: ObiRope Points - by josemendez - 19-10-2021, 04:36 PM
RE: ObiRope Points - by Matbee - 20-10-2021, 09:23 AM
RE: ObiRope Points - by josemendez - 20-10-2021, 09:53 AM
RE: ObiRope Points - by Matbee - 20-10-2021, 02:12 PM
RE: ObiRope Points - by josemendez - 20-10-2021, 02:30 PM
RE: ObiRope Points - by Matbee - 20-10-2021, 04:06 PM
RE: ObiRope Points - by josemendez - 20-10-2021, 05:41 PM
RE: ObiRope Points - by Matbee - 21-10-2021, 10:14 PM
RE: ObiRope Points - by josemendez - 21-10-2021, 10:26 PM
RE: ObiRope Points - by Matbee - 21-10-2021, 10:42 PM
RE: ObiRope Points - by josemendez - 22-10-2021, 07:18 AM
RE: ObiRope Points - by Matbee - 22-10-2021, 07:56 AM
RE: ObiRope Points - by josemendez - 22-10-2021, 08:04 AM
RE: ObiRope Points - by Matbee - 22-10-2021, 08:20 AM
RE: ObiRope Points - by josemendez - 22-10-2021, 08:30 AM
RE: ObiRope Points - by Matbee - 22-10-2021, 08:41 AM
RE: ObiRope Points - by josemendez - 22-10-2021, 08:46 AM
RE: ObiRope Points - by Matbee - 22-10-2021, 12:40 PM
RE: ObiRope Points - by josemendez - 25-10-2021, 08:44 AM
RE: ObiRope Points - by josemendez - 22-10-2021, 08:46 AM