< TimerTask | CodeSamples
---% Code tested with Luxinia 0.95 build Nov 15 2006
---% at 11/16/06 23:01:37
-- create an actor to let the l3dprimitive been drawn
actor = actornode.new("actor",0,40,0)
-- create a sphere and link it against the actor
sphere = l3dprimitive.newsphere("sphere",1)
sphere:linkinterface(actor)
sphere:color(1,0,0,1) -- color it red
sphere:rfLitSun(true) -- encolor it
box = l3dprimitive.newcube("cube",1,0.5,0.2)
box:link(sphere) -- link it at the sphere
box:localpos(10,0,0) -- move it away from the center
box:localrotdeg(30,0,0) -- rotate it
-- the box is now linked with the sphere
-- it will stay in the relative coordinates to the
-- sphere
