setJointDriveLinearVelocity: Difference between revisions
mNo edit summary |
BrettMayson (talk | contribs) No edit summary |
||
| Line 23: | Line 23: | ||
|p1= joint : [[Object]] or [[NetObject]] - The parent vehicle that has a joint to a child, or the joint itself to be manipulated | |p1= joint : [[Object]] or [[NetObject]] - The parent vehicle that has a joint to a child, or the joint itself to be manipulated | ||
|p2= velocity: | |p2= velocity: [[Vector3D]] - relative velocity vector | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
Latest revision as of 07:32, 2 January 2026
Description
- Description:
- Requires that a linear "drive" has been configured in attachChild.
Sets the joints target velocity (orientation relative to the joint's own orientation). The drive will then behave like a spring (springParameters are configured in the drive), trying to accelerate the child object to the desired velocity.
Similar to setVelocityModelSpace - Groups:
- PhysX
Syntax
- Syntax:
- joint setJointDriveLinearVelocity velocity
- Parameters:
- joint : Object or NetObject - The parent vehicle that has a joint to a child, or the joint itself to be manipulated
- velocity: Vector3D - relative velocity vector
- Return Value:
- Nothing
Examples
- Example 1:
- -no SQF code provided-
- Example 2:
- -no SQF code provided-
- Example 3:
- -no SQF code provided-
- Example 4:
- -no SQF code provided-
- Example 5:
- -no SQF code provided-
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note