Beispiel #1
0
 internal static extern int dGeomTriMeshIsTCEnabled(dGeomID g, GeomClass geomClass);
Beispiel #2
0
 internal static extern void dGeomTriMeshEnableTC(dGeomID g, GeomClass geomClass, int enable);
Beispiel #3
0
 public static extern int CreateGeomClass(ref GeomClass classptr);
Beispiel #4
0
 internal static extern int CreateGeomClass(ref GeomClass classptr);
Beispiel #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);
 }
Beispiel #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);
 }