Drag[en]gine Script Module DragonScript
1.23
|
Public Member Functions | |
Management | |
Sky | getSky () |
Owner sky. More... | |
int | getLayerIndex () |
Owner layer index. More... | |
int | getBodyIndex () |
Body index. More... | |
Bodys | |
Quaternion | getOrientation () |
Orientation. More... | |
void | setOrientation (Quaternion orientation) |
Set orientation. More... | |
Vector2 | getSize () |
Size in radians. More... | |
void | setSize (Vector2 size) |
Set size in radians. More... | |
Color | getColor () |
Blending color. More... | |
void | setColor (Color color) |
Set blending color. More... | |
Skin | getSkin () |
Skin or null if not set. More... | |
void | setSkin (Skin skin) |
Set skin or null if not set. More... | |
Sky body.
Wraps a sky body by body index. Valid only as long as the wrapped sky does not change layer layout and layer does not change body layout. The user is responsible to call Sky.contentChanged() after changing one or more bodys. Sky bodys should not be changed if possible after being used in sky instances.
This is a native class.
int Dragengine.Scenery.SkyBody.getBodyIndex | ( | ) |
Body index.
Color Dragengine.Scenery.SkyBody.getColor | ( | ) |
Blending color.
int Dragengine.Scenery.SkyBody.getLayerIndex | ( | ) |
Owner layer index.
Quaternion Dragengine.Scenery.SkyBody.getOrientation | ( | ) |
Orientation.
Vector2 Dragengine.Scenery.SkyBody.getSize | ( | ) |
Size in radians.
Sky Dragengine.Scenery.SkyBody.getSky | ( | ) |
Owner sky.
void Dragengine.Scenery.SkyBody.setColor | ( | Color | color | ) |
Set blending color.
void Dragengine.Scenery.SkyBody.setOrientation | ( | Quaternion | orientation | ) |
Set orientation.
void Dragengine.Scenery.SkyBody.setSize | ( | Vector2 | size | ) |
Set size in radians.
void Dragengine.Scenery.SkyBody.setSkin | ( | Skin | skin | ) |
Set skin or null if not set.