Definition
double GetCharacterControllerRunSpeed()
Description
This function returns the running speed value of the physics character controller.
Return Value
The running speed value of the physics character controller.
Example
value = 0.0 function Init() value = GetCharacterControllerRunSpeed() message = string.format("\nCharacter Controller Run Speed is : %.2f" ,value) PrintConsole(message) end function Update() end
First we get the running speed value of the physics character controller. Then we display the result in the console using the PrintConsole function.
GetCharacterControllerRunSpeed