GetVehicleBoundingBox: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetVehicleBoundingBox(vehicle)}} {{FuncParameters}} {{FuncParam|vehicle|__EDIT_ME__}} {{FuncRetur...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Gets the local bounds of the vehicle.}}


{{FuncSyntax|GetVehicleBoundingBox(vehicle)}}
{{FuncSyntax|GetVehicleBoundingBox(vehicle)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|vehicle|__EDIT_ME__}}
{{FuncParam|vehicle|The vehicle identifier.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns 6 floats: MinX, MinY, MinZ, MaxX, MaxY, MaxZ}}
Min is the origin (pivot) minus the extent of the vehicle. Max is the origin (pivot) plus the extent of the vehicle.


== Example ==
== Example ==
__EDIT_ME__
An example can be found in the vdebug package by Voltaism: https://github.com/vugi99/onset-vdebug/blob/master/client/cl_vdebug.lua#L98


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{VehicleFunctions}}

Latest revision as of 11:32, 1 September 2020