GetObjectBoundingBox: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


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


{{FuncSyntax|GetObjectBoundingBox(object)}}
{{FuncSyntax|GetObjectBoundingBox(object)}}


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


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


== Example ==
== Example ==

Revision as of 00:52, 5 March 2020

GetObjectBoundingBox

Type: Function
Context: Client
Introduced: v1.0

Description

Gets the local bounds of the object.

Syntax

GetObjectBoundingBox(object)

Parameters

  • object
    The object identifier.

Return Value

  • Returns 6 floats: MinX, MinY, MinZ, MaxX, MaxY, MaxZ

Min is the origin (pivot) minus the extent of the object. Max is the origin (pivot) plus the extent of the object.

Example

__EDIT_ME__

See also