Documentation

Classes

Class CubeSceneNode

A class rendering a simple cube of default size 10 with one material.

Extends MeshSceneNode.

Class Overview
CubeSceneNode(size)
A class rendering a simple 3d cube, used for testing purposes. Example showing how to add this to the current scene:
// add a cube to the scene
var cubenode = new CubeSceneNode();
scene.getRootSceneNode().addChild(cubenode);

// set material texture of the cube:
cubenode.getMaterial(0).Tex1 = 
   engine.getTextureManager().getTexture("crate_wood.jpg", true);
Parameters:
size
Size of the cube, default this is 10.

Fields borrowed from class SceneNode:
Id, Name, Pos, Rot, Scale, Selector, Visible
Methods borrowed from class MeshSceneNode:
createClone, getBoundingBox, getMesh, getType, setMesh
Methods borrowed from class SceneNode:
addAnimator, addChild, getAbsolutePosition, getAbsoluteTransformation, getAnimatorOfType, getAnimators, getMaterial, getMaterialCount, getParent, getRelativeTransformation, getTransformedBoundingBox, init, OnAnimate, OnRegisterSceneNode, removeAnimator, removeChild, render, updateAbsolutePosition

© 2010 N.Gebhardt, Ambiera
Documentation generated by JsDoc Toolkit