Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't get a particle rotation
#1
Sorprendido 
Checked out the Docs and it has multiple ways to get rotational information but the functions all return zero'd out Quaternions / Vector3s.

I have to be missing something.

I tried (Even if they didn't pertain to ObiRope):

Code:
ObiSolver.angularVelocities[solverIndex];

ObiSolver.orientations[solverIndex]

ObiRope.GetParticleOrientation(solverIndex)
Reply
#2
Only certain actors (specifically rods, softbodies, and granulars) make use of oriented particles. Ropes, cloth and fluid do not use them.

Most actors only work with particle positions and linear velocities. This cuts a lot on quaternion operations, cross products, inertia tensors and the like, resulting in much simpler (and faster) math.

You can check whether a certain actor uses oriented particles like this:
Code:
actor.usesOrientedParticles;

Here:
http://obi.virtualmethodstudio.com/tutor...setup.html

You can see the differences between ropes and rods, and why orientations are only needed for rods.
Reply
#3
(02-04-2020, 08:38 AM)josemendez Wrote: Only certain actors (specifically rods, softbodies, and granulars) make use of oriented particles. Ropes, cloth and fluid do not use them.

Most actors only work with particle positions and linear velocities. This cuts a lot on quaternion operations, cross products, inertia tensors and the like, resulting in much simpler (and faster) math.

You can check whether a certain actor uses oriented particles like this:
Code:
actor.usesOrientedParticles;

Here:
http://obi.virtualmethodstudio.com/tutor...setup.html

You can see the differences between ropes and rods, and why orientations are only needed for rods.

Figured I was using it wrong lol
Thanks for the fast reply
Reply