land
16-03-2008 04:54:10
Hello~ everyone
In the basic tutorial 2, I found out that, the "ent" first was assigned to the Ninja like this:
And then was assigned to the GroundEntity, like this:
Won't it be a problem? the same "ent" was assigned to 2 different things? Or it is ok?
Thanks for replying.
In the basic tutorial 2, I found out that, the "ent" first was assigned to the Ninja like this:
ent = sceneManager.createEntity('Ninja', 'ninja.mesh')
ent.castShadows = True
sceneManager.rootSceneNode.createChildSceneNode().attachObject(ent)
And then was assigned to the GroundEntity, like this:
ent = sceneManager.createEntity('GroundEntity', 'Ground')
sceneManager.rootSceneNode.createChildSceneNode ().attachObject (ent)
ent.setMaterialName ('Examples/Rockwall')
ent.castShadows = False
Won't it be a problem? the same "ent" was assigned to 2 different things? Or it is ok?
Thanks for replying.