Matrix4x4Box - stingray.Matrix4x4Box object reference - Stingray Lua API Reference

stingray.Matrix4x4Box object reference

Description

A "box" that stores a Matrix4x4 object across multiple frames.

Normally, matrices are temporary objects that can only be safely used within a single frame. When you need a matrix value to persist across multiple frames, you can call Matrix4x4Box.store() to store the matrix in a Matrix4x4Box, and Matrix4x4Box.unbox() to retrieve the stored values.

For more information, see Object Lifetimes and Userdata Binding.

Functions

Parameters

self :

stingray.Matrix4x4Box

Specifies the object instance that this function will act on.

You may use the colon : calling syntax to call this function on an instance of this object. If you do so, you must omit this parameter. For more information, see this Stingray help topic, or this page in the Lua documentation.

m :

stingray.Matrix4x4

The matrix to store in the box.

Returns
This function does not return any values.
Parameters

self :

stingray.Matrix4x4Box

Specifies the object instance that this function will act on.

You may use the colon : calling syntax to call this function on an instance of this object. If you do so, you must omit this parameter. For more information, see this Stingray help topic, or this page in the Lua documentation.
Returns

stingray.Matrix4x4

The matrix retrieved from the box.