Set pitch axis steering||doc135432

September 20, 2022

Format

 Object:setRotationPitch(pitch) 
  • The class to which the function belongs:Object

Description

Set the pitch axis rotation angle.


Precautions

  • Setting the pitch axis rotation angle of the object on the server will not be synchronized to the client

Parameters

Variable name type Description
pitch float pitch angle


Code Samples

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

this:setRotationPitch(0)