An Object can be created using the ThreeDFrame:newObject method:
-- creates a PineObject with the pineapple model at 1, 3, 7
local object = ThreeDFrame:newObject("pineapple", 1, 3, 7)
Known as: rotationX
Type: number
the objects rotation around the x axis (you're probably not using this unless you want to attempt 3d physics)
Known as: rotationY
Type: number
the objects rotation around the y axis (horizontal rotation)
Known as: rotationZ
Type: number
the objects rotation around the z axis (vertical rotation)
Known as: model
Type:
CollapsedModel
the model that is rendered for this object
Known as: modelSize
Type: number
largest distance of a vertex from the center of the model
Returns:
void
Name |
Type |
Description |
x |
number |
new x position (optional) |
y |
number |
new y position (optional) |
z |
number |
new z position (optional) |
Returns:
void
Name |
Type |
Description |
rotX |
number |
new rotation around the x axis in radians (optional) |
rotY |
number |
new rotation around the y axis in radians (optional) |
rotZ |
number |
new rotation around the z axis in radians (optional) |
Returns:
void
Name |
Type |
Description |
model |
string or Model |
if string, used as path to load the serialized Model |