gma.baseTemplate

Allows the specification of a rendered object

Package gma/utils/render
Descendants gma.colladaTemplate, gma.glgeIDTemplate, gma.meshTemplate

Properties

sceneHelper

The helper object for the scene
<strong> must be passed in </strong>
Type gma.sceneHelper

_blueprint

The object that we are instancing

Type GLGE.Object

xRot

The ammount to rotate the object in the x axis

Type Number
Default 0

yRot

The ammount to rotate the object in the y axis

Type Number
Default 0

zRot

The ammount to rotate the object in the z axis

Type Number
Default 0

xScale

The ammount to scale the object in the x axis

Type Number
Default 0

yScale

The ammount to scale the object in the y axis

Type Number
Default 0

zScale

The ammount to scale the object in the z axis

Type Number
Default 0

xOffset

The ammount to shift the object in the x axis

Type Number
Default 0

yOffset

The ammount to shift the object in the y axis

Type GLGE.Object
Default 0

zOffset

The ammount to shift the object in the z axis

Type GLGE.Object
Default 0

Methods

defineInstance ( ) -> GLGE.Object
Determines object that will be instanced
getInstance ( ) -> GLGE.Group
Puts the object into a GLGE group and offsets its position appropriately
It then returns a new instance of the group

Table Of Contents

Fork me on GitHub