I can only use setRotation/Position/Scale.... ?
can't set the scenenode's transform matrix?
-
michael520
- Posts: 230
- Joined: Mon Oct 10, 2005 2:24 am
can't set the scenenode's transform matrix?
iscenenode doesn't provide the interface to set its transform matrix using an calculated matrix......
I can only use setRotation/Position/Scale.... ?
I can only use setRotation/Position/Scale.... ?
Well, there is getAbsoluteTransformation() which returns a reference to the nodes transformation matrix. You can assign to that. Unfortunately that won't help you a whole bunch because the scene node recalculates its own transformation in OnPostRender() which will overwrite anything you did by directly setting the transformation.
-
michael520
- Posts: 230
- Joined: Mon Oct 10, 2005 2:24 am
-
michael520
- Posts: 230
- Joined: Mon Oct 10, 2005 2:24 am
Dude, I totally understand what you want. I'm saying that you can't do it. Even if you were allowed to, there would be problems because there would be two ways to set the transform, one via setPosition(), setRotation(), setScale() and the other using your proposed setTransformation().
You can do exactly what you are asking by putting a single dummy scene node as the parent of your node. When you want to modify the transformation of your node, modify the transformation of the dummy scene node.
Also, just saying you want something doesn't make it magically appear exactly as you want it. I offer you a solution that you can use with the existing version of Irrlicht. If you don't want that solution, then get off yer ass and write one yourself.
Travis
You can do exactly what you are asking by putting a single dummy scene node as the parent of your node. When you want to modify the transformation of your node, modify the transformation of the dummy scene node.
Also, just saying you want something doesn't make it magically appear exactly as you want it. I offer you a solution that you can use with the existing version of Irrlicht. If you don't want that solution, then get off yer ass and write one yourself.
Travis
-
michael520
- Posts: 230
- Joined: Mon Oct 10, 2005 2:24 am