internal static extern int dGeomTriMeshIsTCEnabled(dGeomID g, GeomClass geomClass);
internal static extern void dGeomTriMeshEnableTC(dGeomID g, GeomClass geomClass, int enable);
public static extern int CreateGeomClass(ref GeomClass classptr);
internal static extern int CreateGeomClass(ref GeomClass classptr);
/// <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); }
/// <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); }