digimikeh
21-02-2009 00:01:21
Hi there...
I want to know if this two ways to script are the same or means different things..
Type A
Type B
should be that Type A is in one line resumed those written in Type B ?
I want to know if this two ways to script are the same or means different things..
Type A
entA = sceneManager.createEntity ('Ninja', 'ninja.mesh')
entA.castShadows = True
sceneManager.getRootSceneNode().createChildSceneNode ().attachObject (entA)
Type B
entA = sceneManager.createEntity("Ninja", "ninja.mesh")
nodeA = sceneManager.getRootSceneNode().createChildSceneNode("NinjaNodeA")
nodeA.attachObject(entA)
entA.castShadows = True
should be that Type A is in one line resumed those written in Type B ?