SetTargetRotation
This function is used to set the rotation a kinematic joint turns the attached entity to.
Syntax
- SetTargetRotation(number x, number y, number z, number blend=0.5)
- SetTargetRotation(Vec3 rotation, number blend=0.5)
Parameters
- rotation: rotation to turn the attached entity to.
- x: pitch of the rotation to turn the attached entity to.
- y: yaw of the rotation to turn the attached entity to.
- z: roll of the rotation to turn the attached entity to.