/// <summary> /// Apply forces to bodies. /// </summary> /// <param name="bodies">The list of bodies to which forces will be applied.</param> public void Generate(IList <RigidBody> bodies) { if (_isEnabled) { Vector3 worldTorque; Vector3.Transform(ref _torque, ref _body.World.Orientation, out worldTorque); _body.ApplyTorque(ref worldTorque); } }