gma.baseTemplate¶
Allows the specification of a rendered object
Package
gma/utils/render
Descendants
Properties¶
sceneHelper
The helper object for the scene<strong> must be passed in </strong>
Type
_blueprint
The object that we are instancing
Type
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
Default
0
zOffset
The ammount to shift the object in the z axis
Type
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 appropriatelyIt then returns a new instance of the group