C3DObject::CreateTransform

Top  Previous  Next

Syntax:

 

CreateTransform(C3DScreen pScreen)

 

Purpose:

Creates a transformation object.

 

Parameters:

pScreen - The parent C3DScreen object.

 

Returned value(s):

None.

 

Application:

scene.CreateScene(scrn1)
planet.CreateSphere(scrn1,25,1,false)
moon.createSphere(scrn1,15,.3,false)
trans.CreateTransform(scrn1)
scene.AddChild(planet)
scene.AddChild(light)
planet.AddChild(trans)
trans.AddChild(moon)
moon.Position(3,0,0)

 

Class Hierarchy

C3DObject

 

Additional Info:

A transformation object is a non drawn entity that allows creating pivot points in your scene.  By adding child objects to the transform you can position, orient, and rotate the children as one unit.

 

See Also:

AddChild