User posts Spartan117
11 June 2017 01:07
Hi I'm trying to do a simple physics simulation where you throw a ball (say toward +Y global) from a start point. After throwing you can reset the ball to the start position and then launch again. The loop is this one:
- throw the ball (enable simulation, apply velocity)
- reset the ball (disable simulation, set rotation to 0, set translation to start position)
but I noticed that when you throw again after resetting the ball has the same linear and angular velocity it had before disabling the simulation and resetting its position. So I'm wondering if there is a way to clean all the velocities the ball has before disabling the simulation and resetting its position, in order to have the next throw "physically clean", thanks
- throw the ball (enable simulation, apply velocity)
- reset the ball (disable simulation, set rotation to 0, set translation to start position)
but I noticed that when you throw again after resetting the ball has the same linear and angular velocity it had before disabling the simulation and resetting its position. So I'm wondering if there is a way to clean all the velocities the ball has before disabling the simulation and resetting its position, in order to have the next throw "physically clean", thanks