Example #1
0
 /**
  *  @brief Changes orientation to look at target position.
  *
  *  @param target A {@link TSVector} representing the position to look at.
  **/
 public void LookAt(TSVector target)
 {
     rotation = TSQuaternion.CreateFromMatrix(TSMatrix.CreateFromLookAt(position, target));
 }
Example #2
0
 /**
  *  @brief Changes orientation to look at target position.
  *
  *  @param target A {@link TSVector} representing the position to look at.
  **/
 public void LookAt(TSVector target)
 {
     rotation = TSQuaternion.CreateFromMatrix(TSMatrix.CreateFromLookAt(position, target));
     tsCollider.Body.TSUpdate();
 }