Difference between pages "NewtonOnJointDeserializationCallback" and "NewtonContactJointGetNextContact"

From Newton Wiki
(Difference between pages)
Jump to: navigation, search
 
m (1 revision imported)
 
Line 1: Line 1:
== NewtonOnJointDeserializationCallback ==
+
== NewtonContactJointGetNextContact ==
  
typedef void (*NewtonOnJointDeserializationCallback) (NewtonBody* const body0, NewtonBody* const body1, NewtonDeserializeCallback function, void* const serializeHandle)
+
  void* NewtonContactJointGetNextContact (const NewtonJoint* contactJoint, void* contact);
  
 
== Usage ==
 
== Usage ==
  
Callback function that is called by Newton function(s): [[NewtonSetJointSerializationCallbacks]]
+
Returns a pointer to the next contact point's data of the contact joint.
  
 
== Parameters ==
 
== Parameters ==
  
* body0 NewtonBody*
+
* const NewtonJoint* contactJoint - pointer to the contact joint.
* body1 NewtonBody*
+
* void * - pointer to the previous contact point data.
* function NewtonDeserializeCallback
 
* serializeHandle void*
 
  
 
== Return ==
 
== Return ==
* void
+
 
 +
* Pointer to the next contact point data or NULL in case there are no further contact points.
  
 
== Description ==
 
== Description ==
 +
 +
Returns a pointer to the next contact point's data of the contact joint.
 +
 +
The function acts like an iterator together with [[NewtonContactJointGetFirstContact]].
  
 
== Remarks ==
 
== Remarks ==
  
* This is not a library function, but a callback event.
+
Added in Newton 2.0
  
 
== See also ==
 
== See also ==
[[NewtonSetJointSerializationCallbacks]]
+
[[NewtonContactJointGetFirstContact]]
 +
[[NewtonContactJointGetContactCount]]
 +
[[NewtonContactJointRemoveContact]]
  
[[Category:Newton Callbacks]] [[Category:Newton World Control Functions]] [[Category:Newton World Control Callbacks]] [[Category:Newton Functions]] [[Category:Newton 3 Functions]] [[Category:Newton 3 Callbacks]] [[Category:Newton Functions without description]] [[Category:Newton Callbacks without description]] [[Category:Joint functions]] [[Category:Joint Callbacks]]
+
[[Category:contact joints interface]] [[Category:Newton Functions]] [[Category:Newton 3 Functions]] [[Category:Joint functions]]

Latest revision as of 08:02, 10 June 2019

NewtonContactJointGetNextContact

 void* NewtonContactJointGetNextContact (const NewtonJoint* contactJoint, void* contact);

Usage

Returns a pointer to the next contact point's data of the contact joint.

Parameters

  • const NewtonJoint* contactJoint - pointer to the contact joint.
  • void * - pointer to the previous contact point data.

Return

  • Pointer to the next contact point data or NULL in case there are no further contact points.

Description

Returns a pointer to the next contact point's data of the contact joint.

The function acts like an iterator together with NewtonContactJointGetFirstContact.

Remarks

Added in Newton 2.0

See also

NewtonContactJointGetFirstContact NewtonContactJointGetContactCount NewtonContactJointRemoveContact