Newton SDK DBPro Wrapper v1.53

By Walaber
All Coding between 1.31-1.32B by Kjelle
Updated to 1.53 by Tiresius

Basic Introduction to Newton and how to use it.

Command List

Wrapper Specific Commands

Wrapper Feedback Commands
NDB_GetVersion
NDB_NewtonWorldGetVersion
NDB_GetElapsedTimeInSec

Wrapper Temp Vector/Matrix Commands
NDB_SetVector
NDB_GetVector_X
NDB_GetVector_Y
NDB_GetVector_Z
NDB_GetVector_W
NDB_GetMatrix
NDB_BuildMatrix
NDB_BuildScaleMatrix
NDB_NormalizeVector
NDB_RotateVector
NDB_UnrotateVector
NDB_TransformVector
NDB_UntransformVector

Wrapper Gravity/Buoyancy Commands
NDB_SetStandardGravity
NDB_GetStandardGravity
NDB_SetStandardLiquid
NDB_GetStandardLiquid

Wrapper Moment of Inertia Commands
NDB_CalculateMISphereSolid
NDB_CalculateMISphereHollow
NDB_CalculateMIBoxSolid
NDB_CalculateMICubeSolid
NDB_CalculateMICylinderSolid

Wrapper Collision Feedback Commands
NDB_GetCollisionBodyToBody
NDB_GetCollisionBodyToMaterial
NDB_GetCollisionData

Wrapper Debug Commands
NDB_DebugDrawNewtonLines
NDB_DebugMakeNewtonObject
NDB_DebugRigidBodyCount
 

World Interface Commands


Newton Commands
NDB_NewtonCreate
NDB_NewtonDestroy
NDB_NewtonSetSolverModel
NDB_NewtonSetFrictionModel
NDB_NewtonSetPlatformArchitecture
NDB_NewtonUpdate
NDB_NewtonSetMinimumFrameRate
NDB_NewtonGetTimeStep
NDB_NewtonDestroyAllBodies
NDB_NewtonSetWorldSize
NDB_NewtonSetBodyLeaveWorldEvent
NDB_NewtonWorldFreezeBody
NDB_NewtonWorldUnfreezeBody
NDB_NewtonWorldRayCast
NDB_NewtonWorldRayCastAllBodies
NDB_NewtonDestroyJoint
NDB_NewtonCollisionCollide

Wrapper Commands
NDB_RayCastGetBody
NDB_RayCastGetDist
NDB_RayCastGetNormal
NDB_GetCollisionContact
NDB_GetCollisionNormal
NDB_GetCollisionPenetration

Group ID Interface Commands

NDB_NewtonMaterialGetDefaultGroupID
NDB_NewtonMaterialCreateGroupID
NDB_NewtonMaterialDestroyAllGroupID

Material Setup Interface Commands

NDB_NewtonMaterialSetDefaultCollidable
NDB_NewtonMaterialSetDefaultFriction
NDB_NewtonMaterialSetDefaultElasticity
NDB_NewtonMaterialSetDefaultSoftness
NDB_NewtonMaterialSetContinuousCollisionMode
NDB_NewtonMaterialSetCollisionCallback
NDB_NewtonMaterialSetSphereCollisionCallback

Convex Collision Primitives Interface Commands

Newton Commands
NDB_NewtonCreateNull
NDB_NewtonCreateSphere
NDB_NewtonCreateBox
NDB_NewtonCreateCylinder
NDB_NewtonCreateChamferCylinder
NDB_NewtonCreateCapsule
NDB_NewtonCreateCone
NDB_NewtonCreateConvexHull
NDB_NewtonCreateConvexHullWithScale
NDB_NewtonCreateConvexHullModifier
NDB_NewtonConvexHullModifierSetMatrix
NDB_NewtonConvexHullModifierGetMatrix

NDB_NewtonCreateCompoundCollision

NDB_NewtonCreateTreeCollision NDB_NewtonCreateTreeCollisionUnoptimized NDB_NewtonTreeCollisionBeginBuild
NDB_NewtontreeCollisionAddFace
NDB_NewtonTreeCollisionEndBuild
NDB_NewtonCreateTreeCollisionFromSerialization
NDB_NewtonTreeCollisionSerialize
NDB_NewtonCreateTreeCollisionWithScale
NDB_NewtonCreateTreeCollisionWithScaleUnOptimized

Wrapper Commands
NDB_StartCompoundCollision
NDB_AddCollisionToArray
 

Collision Miscellaneous Interface Commands

NDB_NewtonReleaseCollision
NDB_NewtonConvexCollisionCalculateInertialMatrix
NDB_NewtonConvexCollisionCalculateVolume

Rigid Body Interface Commands

Newton Commands
NDB_NewtonCreateBody
NDB_NewtonDestroyBody
NDB_NewtonBodySetTransformCallback
NDB_NewtonBodySetDestructorCallback
NDB_NewtonBodySetMassMatrix
NDB_NewtonBodyGetMassMatrix
NDB_NewtonBodyGetInvMass
NDB_NewtonBodySetMatrix
NDB_NewtonBodySetMatrixRecursive
NDB_NewtonBodyGetMatrix
NDB_NewtonBodySetCollision
NDB_NewtonBodyGetCollision
NDB_NewtonBodyCoriolisForcesMode
NDB_NewtonBodySetMaterialGroupID
NDB_NewtonBodyGetMaterialGroupID
NDB_NewtonBodySetAutoFreeze
NDB_NewtonBodyGetAutoFreeze
NDB_NewtonBodySetFreezeTreshold
NDB_NewtonBodyGetFreezeTreshold
NDB_NewtonBodySetVelocity
NDB_NewtonBodyGetVelocity
NDB_NewtonBodySetOmega
NDB_NewtonBodyGetOmega
NDB_NewtonBodySetLinearDamping
NDB_NewtonBodyGetLinearDamping
NDB_NewtonBodySetAngularDamping
NDB_NewtonBodyGetAngularDamping
NDB_NewtonAddBodyImpulse
NDB_NewtonBodySetCentreOfMass
NDB_NewtonBodyGetCentreOfMass
NDB_NewtonBodySetContinuousCollisionMode
NDB_NewtonBodyGetContinuousCollisionMode

Wrapper Commands
NDB_BodySetGravity
NDB_BodyGetGravity
NDB_BodySetSphere
NDB_BodyGetSphere
NDB_BodySetBuoyancy
NDB_BodyGetBuoyancy
NDB_BodySetBuoyancyPlane
NDB_BodyGetBuoyancyPlane
NDB_BodySetLiquid
NDB_BodyGetLiquid
NDB_BodyAddForceLocal
NDB_BodyAddForceGlobal
NDB_BodySetForceLocal
NDB_BodySetForceGlobal
NDB_BodyGetRotation
NDB_BodyGetPosition
NDB_BodySetDBProData
NDB_GetBody
NDB_GetDBPro
NDB_BodyExist

Common Joint Commands

Newton Commands
NDB_NewtonJointSetCollisionState
NDB_NewtonJointGetCollisionState
NDB_NewtonJointSetStiffness
NDB_NewtonJointGetStiffness

Wrapper Commands
NDB_JointExist

Ball/Socket Joint Commands

NDB_NewtonConstraintCreateBall
NDB_NewtonBallSetConeLimits
NDB_NewtonBallGetJointAngle
NDB_NewtonBallGetJointOmega
NDB_NewtonBallGetJointForce

Hinge Joint Commands

Newton Commands
NDB_NewtonConstraintCreateHinge
NDB_NewtonHingeGetJointAngle
NDB_NewtonHingeGetJointOmega
NDB_NewtonHingeGetJointForce

Wrapper Hinge Commands

NDB_SetHingeLimits
NDB_SetHingeMotorAccel
NDB_GetHingeMin
NDB_GetHingeMax
NDB_GetHingeMotorAccel

Slider Joint Commands

Newton Commands
NDB_NewtonConstraintCreateSlider
NDB_NewtonSliderGetJointPosit
NDB_NewtonSliderGetJointVeloc
NDB_NewtonSliderGetJointForce

Wrapper Slider Commands
NDB_SetSliderLimits
NDB_SetSliderMotorAccel
NDB_GetSliderMin
NDB_GetSliderMax
NDB_GetSliderMotorAccel

Corkscrew Joint Commands

Newton Commands
NDB_NewtonConstraintCreateCorkscrew
NDB_NewtonCorkscrewGetJointPosit
NDB_NewtonCorkscrewGetJointVeloc
NDB_NewtonCorkscrewGetJointAngle
NDB_NewtonCorkscrewGetJointOmega
NDB_NewtonCorkscrewGetJointForce

Wrapper Corkscrew Commands
NDB_SetCorkscrewLimits
NDB_SetCorkscrewMotors
NDB_GetCorkscrewMinAngle
NDB_GetCorkscrewMaxAngle
NDB_GetCorkscrewMinDist
NDB_GetCorkscrewMaxDist
NDB_GetCorkscrewAngleMotor
NDB_GetCorkscrewDistMotor

Universal Joint Commands

Newton Commands
NDB_NewtonConstraintCreateUniversal
NDB_NewtonUniversalGetJointAngle0
NDB_NewtonUniversalGetJointAngle1
NDB_NewtonUniversalGetJointOmega0
NDB_NewtonUniversalGetJointOmega1
NDB_NewtonUniversalGetJointForce

Wrapper Universal Commands
NDB_SetUniversalLimits
NDB_SetUniversalMotorAccel
NDB_GetUniversalMin1
NDB_GetUniversalMax1
NDB_GetUniversalMin2
NDB_GetUniversalMax2
NDB_GetUniversalMotor1
NDB_GetUniversalMotor2

UpVector Joint Commands

NDB_NewtonConstraintCreateUpVector
NDB_NewtonUpVectorGetPin
NDB_NewtonUpVectorSetPin

RagDoll Commands

Newton Commands
NDB_NewtonCreateRagDoll
NDB_NewtonDestroyRagDoll
NDB_NewtonRagDollBegin
NDB_NewtonRagDollEnd
NDB_NewtonRagDollAddBone
NDB_NewtonRagDollSetTransformCallback
NDB_NewtonRagDollBoneSetLimits

Wrapper Commands
NDB_RagDollSetGravity
NDB_RagDollGetGravity
NDB_RagDollBoneSetDBProData
NDB_RagDollBoneSetOffset
NDB_RagDollBoneGetBody
NDB_RagDollExist
NDB_RagDollBoneExist

 

Vehicle Commands

Newton Commands
NDB_NewtonConstraintCreateVehicle
NDB_NewtonUpdateTires
NDB_NewtonVehicleAddTire
NDB_NewtonVehicleReset
NDB_NewtonVehicleRemoveTire
NDB_NewtonVehicleGetTireSteeringAngle
NDB_NewtonVehicleTireLostSideGrip
NDB_NewtonVehicleTireLostTraction
NDB_NewtonVehicleGetTireOmega
NDB_NewtonVehicleGetTireNormalLoad
NDB_NewtonVehicleGetTireLateralSpeed
NDB_NewtonVehicleGetTireLongitudinalSpeed

Wrapper Commands
NDB_VehicleTireSetTorque
NDB_VehicleTireSetMaxBrake
NDB_VehicleTireSetSteeringAngle
NDB_VehicleTireBrakesOn
NDB_VehicleTireSetDBProData
NDB_VehicleExist
NDB_DestroyVehicle
NDB_NewtonVehicleSetTireMaxSideSleepSpeed
NDB_NewtonVehicleSetTireSideSleepCoeficient
NDB_NewtonVehicleSetTireMaxLongitudinalSlideSpeed
NDB_NewtonVehicleSetTireLongitudinalSlideCoeficient