Page tree
Skip to end of metadata
Go to start of metadata




Introduced in

Version:1.44

Description

Description:
  • Creates a physical joint between two objects with specified parameters. (Each joint type has different degrees of freedom (Roll, Pitch, Forward, Left, etc.) locked/unlocked.
  • Only objects array is mandatory. jointParameters and all sub-parameters are only optional.
  • You can skip OPTIONAL arrays by use [] (I.e. I have array with 4 sub-arrays, but i need only 1st and 3rd. I can use: [1stArray,[],3rdArray])
  • You can skip OPTIONAL parameters by setting them to default values (I.e. [false,0,1] if you want to set only projDist in misc array )
  • More information can be found in the Phys-X SDK documentation: "C:\Program Files\NVIDIA Corporation\NVIDIA PhysX SDK\v2.8.1\SDKs\Docs\PhysXDocumentation.chm"

Syntax

Syntax:objects createJointExt jointParameters
Parameters:
  • are a bit different for each joint type:

createJointExt - SphereJoint

createJointExt - RevoluteJoint

createJointExt - FixedJoint

createJointExt - DistanceJoint

createJointExt - 6DOFJoint
Return Value:Joint

Examples

Examples:
Default spherical joint: (any truck and trailer can be used for a quick test)
[TRUCK,TRAILER] createJointExt
Example mission:
P:\vbs2\missions\doc\dev\bia_techdemo_Phys-X_Joint_Test.Intro
Connecting positions or memory points from the child to parent objects.

Additional Information

See also: deleteJointExt, attachChild, Prepare a Vehicle for PhysX in the VBS Developer Reference
Multiplayer:
Problems:

Notes