Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
softBody velocity
#3
I get what you are saying, basically, since every particles in the softbody will not move at the same speed, i can't get a single velocity straight out the box, but i can calculate an average? for all these velocity?, and that information would be store in the solver's velocities or maybe i am a llitle too new to this.

but you meant something like 


and by doing a for loop of the velocities
vector3 finalVelocity = new Vector3( 0, 0 ,0);

for( int actorIndex = 0; actorIndex < solver.velocitiies.size() ; actorIndex++)
{
finalVelocity +=  solver.velocitiies[actorIndex];
}

finalVelocity /= solver.velocities.size();

i didn't test yet, but was this what you meant, am i going in wrong direction with this?

thnak you for your quick answer by the way.
Reply


Messages In This Thread
softBody velocity - by ReaperQc - 14-05-2021, 02:17 AM
RE: softBody velocity - by josemendez - 14-05-2021, 08:12 AM
RE: softBody velocity - by ReaperQc - 14-05-2021, 01:39 PM
RE: softBody velocity - by josemendez - 14-05-2021, 02:00 PM
RE: softBody velocity - by ReaperQc - 14-05-2021, 02:42 PM
RE: softBody velocity - by josemendez - 14-05-2021, 02:43 PM