Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope Particle Positioning C#
#3
(12-11-2019, 09:20 AM)josemendez Wrote: particle positions/velocities/etc in the actor's arrays (actor.positions, actor.velocities...) are expressed in the actor's local space. These are converted to solver space when you call PushToSolver(), so solver.positions, solver.velocities... are expressed in solver space.

Solver space can either be world space  (if the solver has "simulate in local space" disabled), or the solver's local space (if the solver has "simulate in local space" enabled).

Easiest and most efficient way to change per-actor particles is to find out what their index in the solver is, then directly modifying the solver data:
Code:
var solverIndex = actor.particleIndices[index];
actor.solver.positions[solverIndex] = <your position in world or local (solver) space>.

With Obi Rope 5 how would you translate from local to world since the Solver operates in local now.


Also the new update(s) are awesome!!!
Reply


Messages In This Thread
Rope Particle Positioning C# - by VirtualCucumber - 12-11-2019, 03:30 AM
RE: Rope Particle Positioning C# - by josemendez - 12-11-2019, 09:20 AM
RE: Rope Particle Positioning C# - by VirtualCucumber - 04-12-2019, 05:58 PM
RE: Rope Particle Positioning C# - by josemendez - 04-12-2019, 07:13 PM