Exemple #1
0
 /// <description>
 /// Get the object's transform.
 /// </description>
 /// <returns>the current transform of the object</returns>
 public TransformF GetTransform()
 {
     InternalUnsafeMethods.GetTransform__Args _args = new InternalUnsafeMethods.GetTransform__Args()
     {
     };
     TransformF.InternalStruct _engineResult = InternalUnsafeMethods.GetTransform()(ObjectPtr, _args);
     return(new TransformF(_engineResult));
 }
Exemple #2
0
 /// <summary>Helper method to get a transform from a position and vector (suitable for use with setTransform).</summary>
 /// <description>
 ///
 /// </description>
 /// <param name="pos">Desired transform position</param>
 /// <param name="normal">Vector of desired direction</param>
 /// <returns>The deploy transform</returns>
 public TransformF GetDeployTransform(Point3F pos, Point3F normal)
 {
     pos.Alloc(); normal.Alloc();             InternalUnsafeMethods.GetDeployTransform__Args _args = new InternalUnsafeMethods.GetDeployTransform__Args()
     {
         pos    = pos.internalStructPtr,
         normal = normal.internalStructPtr,
     };
     TransformF.InternalStruct _engineResult = InternalUnsafeMethods.GetDeployTransform()(ObjectPtr, _args);
     pos.Free(); normal.Free();             return(new TransformF(_engineResult));
 }