private void SetTransform(ScalableTransform t)
 {
     storedScale = t.Scale;
     var tr = new Transform(t.Rotation, t.Translation);
     var current = tr*baseTransform.Invert();
     Body.Position = current.Translation.ToJVector();
     Body.Orientation = JMatrix.CreateFromQuaternion(current.Rotation.ToQuaternion());
 }
Exemple #2
0
        private void SetTransform(ScalableTransform t)
        {
            storedScale = t.Scale;
            var tr      = new Transform(t.Rotation, t.Translation);
            var current = tr * baseTransform.Invert();

            Body.Position    = current.Translation.ToJVector();
            Body.Orientation = JMatrix.CreateFromQuaternion(current.Rotation.ToQuaternion());
        }