Beispiel #1
0
 /// <description>
 /// ( vector position [, vector direction ] ) Set the position and orientation of a 3D sound source.
 /// </description>
 public void SetTransform(string position, string direction = "")
 {
     InternalUnsafeMethods.SetTransform__Args _args = new InternalUnsafeMethods.SetTransform__Args()
     {
         position  = position,
         direction = direction,
     };
     InternalUnsafeMethods.SetTransform()(ObjectPtr, _args);
 }
Beispiel #2
0
 /// <description>
 /// Set the object's transform (orientation and position).
 /// </description>
 /// <param name="txfm">object transform to set</param>
 public void SetTransform(TransformF txfm)
 {
     txfm.Alloc();             InternalUnsafeMethods.SetTransform__Args _args = new InternalUnsafeMethods.SetTransform__Args()
     {
         txfm = txfm.internalStructPtr,
     };
     InternalUnsafeMethods.SetTransform()(ObjectPtr, _args);
     txfm.Free();
 }