Hi there,
I am trying to setup my camera view against collision as follow:
--
//in my main init method
View view = new View();
//etc
KeyNavigatorBehavior keyNavBeh = new KeyNavigatorBehavior(cameraTG);
cameraTG.addChild(viewPlatform);
vpTrans.addChild(keyNavBeh);
vpTrans.addChild(cameraTG);
vpRootBG.addChild(vpTrans);
sceneRootBG=createSceneGraph(mainCanvas);
locale.addBranchGraph(sceneRootBG);
locale.addBranchGraph(vpRootBG);
//etc
--
// In my collision behavior class
if(inCollision)
{// don't go forward, get back in the last position
//#1
cameraTG.setTransform(vworldLastPositionT3d);
//#2
view.setVpcToEc(vworldLastPositionT3d);
}
else
{//is not in collision, so
// take this last position not in collision
cameraTG.getLocalToVworld(vworldLastPositionT3d);
}
In the situation #1 I try to put my cameraTG in the last position, taking my
camera into the backward position before its collision, as well as I would
expected to happen in the same way with my setVpcToEc method. Unfortunatelly
it doesn't make any effect to my viewPlataform. The collision is detected,
but I can't take backward my viewplataform.
Some hints ? Thnx in advance. Thomas ...�:0).
_________________________________________________________________
Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".