SetTargetRotation
This function is used to set the rotation a kinematic joint turns the attached entity to.
Syntax
- void SetTargetRotation(const float pitch, const float yaw, const float roll, const float blend=0.5)
- void SetTargetRotation(const Vec3& rotation, const float 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.