gain turn speed||doc135448

September 20, 2022

Format

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

Description

Gets the current entity's turn speed.


Value Returned

type Description
float Turn speed, unit angle per frame


Code Samples

on the client side of the objectmount script, get the current entity's turn speed

local bodyTrunSpeed = this:getBodyTurnSpeed()