public void Integrate(float dt) { if (!LockPosition) { transform.position = VectorUtil.Integrate(transform.position, LinearVelocity, dt); } if (!LockRotation) { transform.rotation = QuaternionUtil.Integrate(transform.rotation, AngularVelocity, dt); } }