self:get_brake

Client

Retrieves the whole-chassis brake force of the vehicle body


Syntax

local value = self:get_brake()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent brake force

Examples

Get the brake force of a vehicle body
local entity = physics.vehicle.create()

core.engine.print("info", "Vehicle body brake:", entity:get_brake())

On this page