Exemplo n.º 1
0
 /// <summary>Returns the frame shape. May be NULL. </summary>
 public virtual NxShape getFrameShape()
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxShape.GetClass(NxFluidEmitter_getFrameShape_INVOKE(ClassPointer, doSetFunctionPointers)));
 }
Exemplo n.º 2
0
 /// <summary>Return contact information for the wheel. </summary>
 /// <param name="dest">Description of the contact. (only valid if there is a contact) </param>
 public virtual NxShape getContact(NxWheelContactData dest)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxShape.GetClass(NxWheelShape_getContact_INVOKE(ClassPointer, doSetFunctionPointers, (dest != null ? dest.ClassPointer : NullRef))));
 }
Exemplo n.º 3
0
 /// <summary>Retrieves the shapes for the current pair. </summary>
 /// <param name="shapeIndex">Used to choose which of the pair of shapes to retrieve(set to 0 or 1). </param>
 public NxShape getShape(uint shapeIndex)
 {
     return(NxShape.GetClass(NxContactStreamIterator_getShape_INVOKE(ClassPointer, doSetFunctionPointers, shapeIndex)));
 }
Exemplo n.º 4
0
 private void onTrigger_virtual(IntPtr triggerShape, IntPtr otherShape, NxShapeFlag status)
 {
     onTrigger(NxShape.GetClass(triggerShape), NxShape.GetClass(otherShape), status);
 }
Exemplo n.º 5
0
 private bool onContactConstraint_virtual([In()][Out()] ref uint changeFlags, IntPtr shape0, IntPtr shape1, uint featureIndex0, uint featureIndex1, IntPtr data)
 {
     return(onContactConstraint(ref changeFlags, NxShape.GetClass(shape0), NxShape.GetClass(shape1), featureIndex0, featureIndex1, NxContactCallbackData.GetClass(data)));
 }
Exemplo n.º 6
0
 private void setFrameShape_virtual(IntPtr shape)
 {
     setFrameShape(NxShape.GetClass(shape));
 }
Exemplo n.º 7
0
		private bool onWheelContact_virtual(IntPtr wheelShape, [In()] [Out()] ref NxVec3 contactPoint, [In()] [Out()] ref NxVec3 contactNormal, [In()] [Out()] ref float contactPosition, [In()] [Out()] ref float normalForce, IntPtr otherShape, [In()] [Out()] ref ushort otherShapeMaterialIndex, uint otherShapeFeatureIndex)
		{
			return onWheelContact(NxWheelShape.GetClass(wheelShape), ref contactPoint, ref contactNormal, ref contactPosition, ref normalForce, NxShape.GetClass(otherShape), ref otherShapeMaterialIndex, otherShapeFeatureIndex);
		}