Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Colleagues:
If I make a child scene node of a parent scene node, does the child have to inherit the position and orientation of the parent? Can I have a child node which inherits position but not orientation (this has to do with my multiplayer script....I'd like a plane to hover over an avatar, so when the avatar moves, the plane moves, but I want the plane's orientation to be independent of the avatar so it always faces the user's camera shell.)
thx for your input.
-h
Offline
the child is create at 0 0 0, the 0 0 0 correspond to the parent location, not the world one.
no you can't prevent the orientation to be updated, but in pre render you can change the child orientation
Offline
the child is create at 0 0 0, the 0 0 0 correspond to the parent location, not the world one.
no you can't prevent the orientation to be updated, but in pre render you can change the child orientation
thx arkeon....so if the parent node moves and changes orientation, i can set my own orientation on the child node and ogre won't show the child node flipping back and forth since the override is done before the frame is rendered? am i getting that right?
'
thx
Offline
yes you're right
thx
Offline
So is this how the callbacks work?
Prerender cb
Frame 1
Postrender cb
Prerender cb
Frame 2
Postrender cb
Prerender cb
Frame 3
Etc. Etc.
Offline