Difference between pages "NewtonBodySetCollision" and "NewtonOnJointDeserializationCallback"

From Newton Wiki
(Difference between pages)
Jump to: navigation, search
m (1 revision imported)
 
 
Line 1: Line 1:
== NewtonBodySetCollision ==
+
== NewtonOnJointDeserializationCallback ==
  
  void NewtonBodySetCollision( const NewtonBody* bodyPtr, const NewtonCollision* collisionPtr)
+
  typedef void (*NewtonOnJointDeserializationCallback) (NewtonBody* const body0, NewtonBody* const body1, NewtonDeserializeCallback function, void* const serializeHandle)
  
 
== Usage ==
 
== Usage ==
  
Assign a collision primitive to the body.
+
Callback function that is called by Newton function(s): [[NewtonSetJointSerializationCallbacks]]
  
 
== Parameters ==
 
== Parameters ==
  
* const NewtonBody *bodyPtr - pointer to the body.
+
* body0 NewtonBody*
* const collisionPtr *collisionPtr - pointer to the new collision geometry.
+
* body1 NewtonBody*
 +
* function NewtonDeserializeCallback
 +
* serializeHandle void*
  
 
== Return ==
 
== Return ==
* Nothing.
+
* void
 +
 
 +
== Description ==
  
 
== Remarks ==
 
== Remarks ==
* This function replaces a collision geometry of a body with the new collision geometry. This function increments the reference count of the collision geometry and decrements the reference count of the old collision geometry. If the reference count of the old collision geometry reaches zero, the old collision geometry is destroyed. This function can be used to swap the collision geometry of bodies at runtime.
+
 
 +
* This is not a library function, but a callback event.
  
 
== See also ==
 
== See also ==
[[NewtonCreateBody]]
+
[[NewtonSetJointSerializationCallbacks]]
[[NewtonBodyGetCollision]]
 
  
[[Category:body manipulation functions]] [[Category:Newton Functions]] [[Category:Newton 3 Functions]] [[Category:Collision shape functions]]
+
[[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]]

Revision as of 08:02, 10 June 2019

NewtonOnJointDeserializationCallback

typedef void (*NewtonOnJointDeserializationCallback) (NewtonBody* const body0, NewtonBody* const body1, NewtonDeserializeCallback function, void* const serializeHandle)

Usage

Callback function that is called by Newton function(s): NewtonSetJointSerializationCallbacks

Parameters

  • body0 NewtonBody*
  • body1 NewtonBody*
  • function NewtonDeserializeCallback
  • serializeHandle void*

Return

  • void

Description

Remarks

  • This is not a library function, but a callback event.

See also

NewtonSetJointSerializationCallbacks