Exemplo n.º 1
0
 /// <summary>
 /// transfer from one entity to another, preserving transform information
 /// </summary>
 internal override void PrepareForTransfer(Entity toEntity)
 {
     Position = Entity.Transform.WorldPosition(true) - toEntity.Transform.WorldPosition(true);
     Core.Mathematics.Quaternion inverted = toEntity.Transform.WorldRotation();
     inverted.Invert();
     Rotation = Entity.Transform.WorldRotation() * inverted;
 }