/// <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))); }
/// <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)))); }
/// <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))); }
private void onTrigger_virtual(IntPtr triggerShape, IntPtr otherShape, NxShapeFlag status) { onTrigger(NxShape.GetClass(triggerShape), NxShape.GetClass(otherShape), status); }
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))); }
private void setFrameShape_virtual(IntPtr shape) { setFrameShape(NxShape.GetClass(shape)); }
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); }