API Database
From Newton Wiki
This page is a WIP. eventually there should be a page for each function in the API, with documentation for the function, as well as comments from users / example code / bugs / etc.
Structures
- struct NewtonUserMeshCollisionCollideDescTag
- struct NewtonUserMeshCollisionRayHitDescTag
- struct NewtonHingeSliderUpdateDescTag
Callbacks
- NewtonUserMeshCollisionCollideCallback
- NewtonUserMeshCollisionRayHitCallback
- NewtonUserMeshCollisionDestroyCallback
- NewtonBodyDestructor
- NewtonApplyForceAndTorque
- NewtonBodyActivationState
- NewtonSetTransform
- NewtonSetRagDollTransform
- NewtonGetBuoyancyPlane
- NewtonBallCallBack
- NewtonHingeCallBack
- NewtonSliderCallBack
- NewtonUniversalCallBack
- NewtonCorkscrewCallBack
World Commands
- NewtonUpdate
- NewtonCollisionUpdate
- NewtonSetSolverModel
- NewtonSetFrictionModel
- NewtonGetTimeStep
- NewtonSetMinimumFrameRate
- NewtonSetBodyLeaveWorldEvent
- NewtonSetWorldSize
Physics Material Section
- NewtonMaterialSetDefaultSoftness
- NewtonMaterialSetDefaultElasticity
- NewtonMaterialSetDefaultCollidable
- NewtonMaterialSetDefaultFriction
Physics Contact control functions
- NewtonMaterialDisableContact
- NewtonMaterialGetCurrentTimestep
- NewtonMaterialGetMaterialPairUserData
- NewtonMaterialGetContactFaceAttribute
- NewtonMaterialGetBodyCollisionID
- NewtonMaterialGetContactNormalSpeed
- NewtonMaterialGetContactForce
- NewtonMaterialGetContactPositionAndNormal
- NewtonMaterialGetContactTangentDirections
- NewtonMaterialGetContactTangentSpeed
- NewtonMaterialSetContactSoftness
- NewtonMaterialSetContactElasticity
- NewtonMaterialSetContactFrictionState
- NewtonMaterialSetContactStaticFrictionCoef
- NewtonMaterialSetContactKineticFrictionCoef
- NewtonMaterialSetContactTangentAcceleration
convex collision primitives creation functions
- note: Newton uses the local X axis as the "main" axis for all primitives. this means that the "height" of a cylinder or cone is defined on the X axis, and the "radius" is y and z axis'.
- note: The offset matrix can only be used for rotation and translation, scale is not allowed.
- NewtonCreateNull
- NewtonCreateSphere
- NewtonCreateBox
- NewtonCreateCone
- NewtonCreateCapsule
- NewtonCreateCylinder
- NewtonCreateChamferCylinder
- NewtonCreateConvexHull
- NewtonCreateConvexHullModifier
- NewtonConvexHullModifierGetMatrix
- NewtonConvexHullModifierSetMatrix
Complex Collision Primitives Creation Functions
- note: UserMesh can only be used with static bodies bodies with infinite mass
CollisionTree Utility functions
- NewtonCreateTreeCollision
- NewtonTreeCollisionBeginBuild
- NewtonTreeCollisionAddFace
- NewtonTreeCollisionEndBuild
Collision Miscelaneous function
- NewtonReleaseCollision
- NewtonCollisionCalculateAABB
- NewtonCollisionForEachPolygonDo
- NewtonCollisionRayCast
- NewtonCollisionPointDistance
- NewtonCollisionClosestPoint
- NewtonCollisionCollide
- NewtonCollisionCollideContinue
- NewtonConvexCollisionCalculateInertialMatrix
transforms utility functions
body manipulation functions
- NewtonBodySetMatrix
- NewtonBodySetMatrixRecursive
- NewtonBodySetMassMatrix
- NewtonBodySetMaterialGroupID
- NewtonBodySetContinuousCollisionMode
- NewtonBodySetJointRecursiveCollision
- NewtonBodySetOmega
- NewtonBodySetVelocity
- NewtonBodySetForce
- NewtonBodySetTorque
- NewtonBodySetLinearDamping
- NewtonBodySetAngularDamping
- NewtonBodySetUserData
- NewtonBodyCoriolisForcesMode
- NewtonBodySetCollision
- NewtonBodySetAutoFreeze
- NewtonBodySetFreezeTreshold
- NewtonBodySetTransformCallback
- NewtonBodySetDestructorCallback
- NewtonBodySetAutoactiveCallback
- NewtonBodySetForceAndTorqueCallback
- NewtonBodyGetWorld
- NewtonBodyGetUserData
- NewtonBodyGetCollision
- NewtonBodyGetContinuousCollisionMode
- NewtonBodyGetJointRecursiveCollision
- NewtonBodyGetMatrix
- NewtonBodyGetMassMatrix
- NewtonBodyGetInvMass
- NewtonBodyGetOmega
- NewtonBodyGetVelocity
- NewtonBodyGetForce
- NewtonBodyGetTorque
- NewtonBodyGetSleepingState
- NewtonBodyGetAutoFreeze
- NewtonBodyGetLinearDamping
- NewtonBodyGetAngularDamping
- NewtonBodyGetAABB
- NewtonBodyGetFreezeTreshold
Common Joint Functions
Ball and Socket Joint functions
- NewtonConstraintCreateBall
- NewtonBallSetUserCallback
- NewtonBallGetJointAngle
- NewtonBallGetJointOmega
- NewtonBallGetJointForce
- NewtonBallSetConeLimits
Hinge Joint functions
- NewtonConstraintCreateHinge
- NewtonHingeSetUserCallback
- NewtonHingeGetJointAngle
- NewtonHingeGetJointOmega
- NewtonHingeGetJointForce
- NewtonHingeCalculateStopAlpha
Slider Joint functions
- NewtonConstraintCreateSlider
- NewtonSliderSetUserCallback
- NewtonSliderGetJointPosit
- NewtonSliderGetJointVeloc
- NewtonSliderGetJointForce
- NewtonSliderCalculateStopAccel
Corkscrew Joint functions
- NewtonConstraintCreateCorkscrew
- NewtonCorkscrewSetUserCallback
- NewtonCorkscrewGetJointPosit
- NewtonCorkscrewGetJointAngle
- NewtonCorkscrewGetJointVeloc
- NewtonCorkscrewGetJointOmega
- NewtonCorkscrewGetJointForce
- NewtonCorkscrewCalculateStopAlpha
- NewtonCorkscrewCalculateStopAccel
Universal Joint functions
- NewtonConstraintCreateUniversal
- NewtonUniversalSetUserCallback
- NewtonUniversalGetJointAngle0
- NewtonUniversalGetJointAngle1
- NewtonUniversalGetJointOmega0
- NewtonUniversalGetJointOmega1
- NewtonUniversalGetJointForce
- NewtonUniversalCalculateStopAlpha0
- NewtonUniversalCalculateStopAlpha1
Up vector Joint functions
User defined bilateral Joint
- NewtonConstraintCreateUserJoint
- NewtonUserJointAddLinearRow
- NewtonUserJointAddAngularRow
- NewtonUserJointSetRowMinimunFriction
- NewtonUserJointSetRowMaximunFriction
- NewtonUserJointSetRowAcceleration
- NewtonUserJointSetRowStiffness
- NewtonUserJointGetRowForce
Ragdoll Joint container function
Vehicle Joint functions
- NewtonConstraintCreateVehicle
- NewtonVehicleReset
- NewtonVehicleSetTireCallback
- NewtonVehicleAddTire
- NewtonVehicleRemoveTire
- NewtonVehicleBalanceTires
- NewtonVehicleTireIsAirBorne
- NewtonVehicleTireLostSideGrip
- NewtonVehicleTireLostTraction
- NewtonVehicleTireCalculateMaxBrakeAcceleration
- NewtonVehicleTireSetBrakeAcceleration
