GetObjectSize: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Returns size of the bounding box. (Maximum point - minimum point)}}


{{FuncSyntax|GetObjectSize(object)}}
{{FuncSyntax|GetObjectSize(object)}}


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


{{FuncReturnValue|Returns 3 floats containing the size of this objects model in all 3 dimensions.}}
{{FuncReturnValue|Returns 3 floats containing the size of this objects model in all 3 dimensions.}}


== Example ==
== Example ==
__EDIT_ME__
[https://github.com/BlueMountainsIO/OnsetLuaScripts/blob/6f45ad9607e30c97f4f1d58443d808da632d4d91/mapeditor/client/editor.lua#L183 See example from the map editor on GitHub.]


{{RelatedFunctions}}
{{RelatedFunctions}}

Latest revision as of 11:27, 2 November 2020

GetObjectSize

Type: Function
Context: Client
Introduced: v1.0

Description

Returns size of the bounding box. (Maximum point - minimum point)

Syntax

GetObjectSize(object)

Parameters

  • object
    The object identifier.

Return Value

  • Returns 3 floats containing the size of this objects model in all 3 dimensions.

Example

See example from the map editor on GitHub.

See also