NewtonOnContactGeneration

From Newton Wiki
Jump to: navigation, search

NewtonOnContactGeneration

typedef int  (*NewtonOnContactGeneration) (const NewtonMaterial* const material, const NewtonBody* const body0, const NewtonCollision* const collision0, const NewtonBody* const body1, const NewtonCollision* const collision1, NewtonUserContactPoint* const contactBuffer, int maxCount, int threadIndex)

Usage

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

Parameters

  • material NewtonMaterial*
  • body0 NewtonBody*
  • collision0 NewtonCollision*
  • body1 NewtonBody*
  • collision1 NewtonCollision*
  • contactBuffer NewtonUserContactPoint*
  • maxCount int
  • threadIndex int

Return

  • int

Description

Remarks

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

See also

NewtonMaterialSetContactGenerationCallback