public static void Fire(float startPos, ref PlungerVelocityData velocityData, ref PlungerMovementData movementData, in PlungerStaticData staticData)
public static void PullBackAndRetract(float speedPull, ref PlungerVelocityData velocityData, ref PlungerMovementData movementData) { movementData.Speed = 0.0f; velocityData.PullForce = speedPull; // deactivate the retract code velocityData.AddRetractMotion = false; movementData.RetractMotion = false; velocityData.InitialSpeed = speedPull; }