Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java 3D > multiple behavi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 723 of 837
Post > Topic >>

multiple behaviors on multiple objects / move everything and if picked only one object

by "marmu" <marmu@[EMAIL PROTECTED] > Dec 22, 2006 at 06:50 AM

Hello everyone,

I`m having great trouble by programming the following:

We are programming a miniature golf-game at university.
We want to enable the user to rotate, zoom and translate everything he
sees at once. We did this with an OrbitBehavior. As far as I know an
OrbitBehavior cannot be limited to angles and zoomfactor, is that
right? Because later we want to limit the zoom and the user shoudn`t be
able to look beneath the ground.

The other thing is an arrow, which we want to use for the drive. The
user should rotate it around one axis to set the direction. And the
size of the arrow should represent the power of the drive.
Problem here is the rotation around one axis.
This is not want the PickRotateBehavior is for. Probably I have to
program my own behavior but how?
I`m using PickRotateBehavior and PickZoom. But Zoom doesn`t change the
size, it does what its name says, it zooms. So the arrow gets nearer to
the user...

If there are problems with using OrbitBehavior (for the whole scene)
together with PickRotate and PickZoom (for the arrow), please tell me.
I tried to replace the OrbitBehavior with PickRotate, PickTranslate and
PickZoom for the whole scene. And then I wanted to pick the arrow as
stated above.. But I can only pick the arrow and zoom it. Rotation of
the arrow doesn`t work and PickRotate, PickTranslate and PickZoom for
everything doesn`t work either.

Three Days passed and I`m stuck. Please give me some hints on how to
realize this and what tools I should use for that.
If you need some of my code, tell me so. My code is kind of messy, but
I`ll structure it for you and show you the im****tant extracts.

I would really appreciate your help. Thanks in advance.

Cheers,
Marcus
 




 4 Posts in Topic:
multiple behaviors on multiple objects / move everything and if
"marmu" <mar  2006-12-22 06:50:53 
Re: multiple behaviors on multiple objects / move everything and
"sanbikinoraion"  2007-01-09 01:31:49 
Re: multiple behaviors on multiple objects / move everything and
"marmu" <mar  2007-01-09 04:39:39 
Re: multiple behaviors on multiple objects / move everything and
"sanbikinoraion"  2007-01-12 05:35:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 2:37:13 CDT 2008.