Set turn speed||doc135447

September 20, 2022

Format

 Entity:setBodyTurnSpeed(speed) 
  • The class to which the function belongs:Entity

Description

Sets the current entity's turn speed.


Parameters

Variable name type Description
speed float Turn speed, unit angle per frame


Code Samples

on the client side of the objectmount script, set the current entity's turning speed.

this:setBodyTurnSpeed(180)