Hi Raja,
there are so many things that could be going wrong with that - you
need to supply the whole scene for us to be sure - then I think we can
pick where you're having trouble very quickly.
Possibly what you're doing is assuming that nodes contain both
transforms and geometry, as some scene graph APIs do. However in
SceneJS everything is split up into distinct node classes.
To set XYZ, what you've posted assumes that cart is a Translate
node...and of course you would need to be repeatedly rendering frames
to see an update.
So if you could, please post the whole JS file, and see if you have
any JS error messages. GitHub gists or pasties would be a good way to
share code examples.
cheers,
Lindsay
On Sep 21, 2:13 pm, "
raja.amir...@gmail.com" <
raja.amir...@gmail.com>