set yaw axis steering||doc135431

September 20, 2022

Format

 Object:setRotationYaw(yaw) 
  • The class to which the function belongs:Object

Description

Sets the orientation of the object's yaw axis.


Precautions

  • Setting the object's yaw orientation on the server will not synchronize it to the client

Parameters

Variable name type Description
yaw float yaw angle


Code Samples

on the client side of the objectmount script, set the rotation angle of the object's yaw axis

this:setRotationYaw(0)