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.
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.