Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.00

Description

Description:Returns the center of the object bounding sphere. The bounding sphere is created by the VBS engine, and is based on the object type. It is generally bigger than the object itself (for example, by a factor of 1.5 for vehicles), and is used in collision checks.

Syntax

Syntax:boundingCenter object
Parameters:
Return Value:Position3D - Center position, in model coordinates.

Examples

Examples:
_ball = "vbs2_visual_sphere_50cm" createVehicle (getpos car);
_ball setPos (car modelToWorld (boundingCenter car));

Additional Information

See also: boundingBox
Multiplayer: 
Problems: 

Notes