Difference between pages "NewtonConvexCollisionCalculateInertialMatrix" and "NewtonWorldListenerGetBodyDestroyCallback"

From Newton Wiki
(Difference between pages)
Jump to: navigation, search
 
 
Line 1: Line 1:
== NewtonConvexCollisionCalculateInertialMatrix ==
+
== NewtonWorldListenerGetBodyDestroyCallback ==
  
  void NewtonConvexCollisionCalculateInertialMatrix( const NewtonCollision* convexCollision, dFloat* inertia, dFloat* origin)
+
  NewtonWorldListenerBodyDestroyCallback NewtonWorldListenerGetBodyDestroyCallback (const NewtonWorld* const newtonWorld, void* const listener)
  
 
== Usage ==
 
== Usage ==
  
Calculate the three principal axis and the the values of the inertia matrix of a convex collision objects.
+
Returns pointer to currently set body destroy callback for a listener, that was set via [[NewtonWorldListenerSetBodyDestroyCallback]].
  
 
== Parameters ==
 
== Parameters ==
  
* const NewtonCollision convexCollision - is the pointer to a convex collision primitive.
+
* const NewtonWorld* const newtonWorld - instance of newton world
* dFloat *inertia - pointer to and array of a least 3 floats to hold the values of the principal inertia.
+
* void* const listener - pointer to a listener created with [[NewtonWorldAddListener]]
* dFloat *origin - pointer to and array of a least 3 floats to hold the values of the center of mass for the principal inertia.
 
  
== Remarks ==
+
== Return ==
 +
* NewtonWorldListenerBodyDestroyCallback pointer
  
* This function calculate a general inertial matrix for arbitrary convex collision including compound collisions.
+
== Description ==
  
* It should be noted that the generated inertia values should be multiplied by the object mass before calling NewtonBodySetMassMatrix
 
  
 
== See also ==
 
== See also ==
[[NewtonBodySetMassMatrix]]
 
[[NewtonBodyGetMassMatrix]]
 
[[NewtonBodySetCentreOfMass]]
 
[[NewtonBodyGetCentreOfMass]]
 
  
[[Category:convex collision primitives creation functions]] [[Category:Newton Functions]] [[Category:Newton 3 Functions]] [[Category:Collision shape functions]]
+
[[NewtonWorldAddListener]], [[NewtonWorldGetListenerUserData]], [[NewtonWorldListenerDebug]], [[NewtonWorldListenerGetBodyDestroyCallback]], [[NewtonWorldListenerSetBodyDestroyCallback]], [[NewtonWorldListenerSetDebugCallback]], [[NewtonWorldListenerSetDestroctorCallback]], [[NewtonWorldListenerSetPostUpdateCallback]], [[NewtonWorldListenerSetPreUpdateCallback]]
 +
 
 +
[[Category:Newton World Control Functions]] [[Category:Newton Functions]] [[Category:Newton 3 Functions]] [[Category:World functions]] [[Category:body manipulation functions]] [[Category:World listener functions]]

Revision as of 08:02, 10 June 2019

NewtonWorldListenerGetBodyDestroyCallback

NewtonWorldListenerBodyDestroyCallback NewtonWorldListenerGetBodyDestroyCallback (const NewtonWorld* const newtonWorld, void* const listener)

Usage

Returns pointer to currently set body destroy callback for a listener, that was set via NewtonWorldListenerSetBodyDestroyCallback.

Parameters

  • const NewtonWorld* const newtonWorld - instance of newton world
  • void* const listener - pointer to a listener created with NewtonWorldAddListener

Return

  • NewtonWorldListenerBodyDestroyCallback pointer

Description

See also

NewtonWorldAddListener, NewtonWorldGetListenerUserData, NewtonWorldListenerDebug, NewtonWorldListenerGetBodyDestroyCallback, NewtonWorldListenerSetBodyDestroyCallback, NewtonWorldListenerSetDebugCallback, NewtonWorldListenerSetDestroctorCallback, NewtonWorldListenerSetPostUpdateCallback, NewtonWorldListenerSetPreUpdateCallback