Class: Joint
Lua
C++
Edit

Joint::SetTargetPosition

This method sets the target rotation of a motorized hinge or kinematic joint.

Syntax

Parameter Description
position, (x, y, z) target position to set

Remarks

A slider joint accepts a single offset value. A kinematic joint requires a position in 3D space.

You must call Joint::SetMaxForce and specify a non-zero force before this command will have any effect.

Copyright © 2024 Ultra Software.
All rights reserved.