예제 #1
0
 internal static extern int dGeomTriMeshIsTCEnabled(dGeomID g, GeomClass geomClass);
예제 #2
0
 internal static extern void dGeomTriMeshEnableTC(dGeomID g, GeomClass geomClass, int enable);
예제 #3
0
 public static extern int CreateGeomClass(ref GeomClass classptr);
예제 #4
0
 internal static extern int CreateGeomClass(ref GeomClass classptr);
예제 #5
0
 /// <summary>
 /// Checks whether temporal coherence is enabled during triangle mesh
 /// collisions with the specified geometry class.
 /// </summary>
 /// <param name="geomClass">The geometry class to check.</param>
 /// <returns>
 /// <b>true</b> if temporal coherence is enabled for the specified
 /// geometry class; otherwise, <b>false</b>.
 /// </returns>
 public bool IsTemporalCoherenceEnabled(GeomClass geomClass)
 {
     return(NativeMethods.dGeomTriMeshIsTCEnabled(Id, geomClass) != 0);
 }
예제 #6
0
 /// <summary>
 /// Enables or disables temporal coherence during triangle mesh collisions
 /// with the specified geometry class.
 /// </summary>
 /// <param name="geomClass">The geometry class for which to set temporal coherence.</param>
 /// <param name="value">
 /// <b>true</b> if temporal coherence should be enabled for the specified
 /// geometry class; otherwise, <b>false</b>.
 /// </param>
 public void EnableTemporalCoherence(GeomClass geomClass, bool value)
 {
     NativeMethods.dGeomTriMeshEnableTC(Id, geomClass, value ? 1 : 0);
 }