GetPhysicsDefaultRestitution

Definition

double GetPhysicsDefaultRestitution()

Description

This function returns the value of physics default restitution.

Return Value

The value of physics default restitution.

Example

value = 0.0

function Init()
    value  = GetPhysicsDefaultRestitution()

    message = string.format("\nDefault physics restitution is : %.2f" ,value)
    PrintConsole(message)
end

function Update()

end
First we get the value of physics default restitution. Then we display the result in the console using the PrintConsole function.
adminGetPhysicsDefaultRestitution