コード例 #1
0
 public unsafe static void SetLocalCenter(this ConvexPolyhedron obj, ref OpenTK.Vector3 value)
 {
     fixed(OpenTK.Vector3 *valuePtr = &value)
     {
         obj.LocalCenter = *(BulletSharp.Math.Vector3 *)valuePtr;
     }
 }
コード例 #2
0
 public unsafe static void GetExtents(this ConvexPolyhedron obj, out OpenTK.Vector3 value)
 {
     fixed(OpenTK.Vector3 *valuePtr = &value)
     {
         *(BulletSharp.Math.Vector3 *)valuePtr = obj.Extents;
     }
 }
コード例 #3
0
 public unsafe static void Project(this ConvexPolyhedron obj, ref OpenTK.Matrix4 trans, ref OpenTK.Vector3 dir, out float minProj, out float maxProj, out OpenTK.Vector3 witnesPtMin, out OpenTK.Vector3 witnesPtMax)
 {
     fixed(OpenTK.Matrix4 *transPtr = &trans)
     {
         fixed(OpenTK.Vector3 *dirPtr = &dir)
         {
             fixed(OpenTK.Vector3 *witnesPtMinPtr = &witnesPtMin)
             {
                 fixed(OpenTK.Vector3 *witnesPtMaxPtr = &witnesPtMax)
                 {
                     obj.Project(ref *(BulletSharp.Math.Matrix *)transPtr, ref *(BulletSharp.Math.Vector3 *)dirPtr, out minProj, out maxProj, out *(BulletSharp.Math.Vector3 *)witnesPtMinPtr, out *(BulletSharp.Math.Vector3 *)witnesPtMaxPtr);
                 }
             }
         }
     }
 }
コード例 #4
0
 public void SetPolyhedralFeatures(ConvexPolyhedron polyhedron)
 {
     btPolyhedralConvexShape_setPolyhedralFeatures(Native, polyhedron.Native);
 }
コード例 #5
0
 public static void SetExtents(this ConvexPolyhedron obj, OpenTK.Vector3 value)
 {
     SetExtents(obj, ref value);
 }
コード例 #6
0
 public static OpenTK.Vector3 GetME(this ConvexPolyhedron obj)
 {
     OpenTK.Vector3 value;
     GetME(obj, out value);
     return(value);
 }
コード例 #7
0
 public static void SetLocalCenter(this ConvexPolyhedron obj, OpenTK.Vector3 value)
 {
     SetLocalCenter(obj, ref value);
 }