internal void updateforcefromtensor(RigidBody body, float duration, Matrix3 tensor) { Vector3 velocity = body.GetVelocity(); velocity += WindSpeed; Vector3 bodyVel = body.GetTransform().TransformInverseDirection(velocity); Vector3 bodyForce = tensor.Transform(bodyVel); Vector3 force = body.GetTransform().TransformDirection(bodyForce); body.AddForceAtBodyPoint(force, Position); }