Skip to main content

OrbitBehavior vs Pick Behavior

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
spayeur Guest
Offline
Joined: 2010-12-12

I'm writing a Java3D application wherein the user will need to both
rotate/translate/zoom the universe, as well as manipulate objects within.
New to this, I'm looking for an approach. I've seen posts where enabling
OrbitBehavior disables the ability to pick objects using PickBehavior. How
would one approach being able to both manipulate the entire scene versus
individual objects?

Thanks,
Steve

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
marcelnagm
Offline
Joined: 2010-06-02

I think if you add a TransformGroup in another TransformGroup you can have
the both Behavior, i did in my project but i don't recommend
because you can accidentally move the object and orbit you scene.
Good Luck

2010/12/12 spayeur

>
> I'm writing a Java3D application wherein the user will need to both
> rotate/translate/zoom the universe, as well as manipulate objects within.
> New to this, I'm looking for an approach. I've seen posts where enabling
> OrbitBehavior disables the ability to pick objects using PickBehavior. How
> would one approach being able to both manipulate the entire scene versus
> individual objects?
>
> Thanks,
> Steve

spayeur Guest
Offline
Joined: 2010-12-12

Thanks. I experimented, and added behaviors to various TransformGroups.
Question: how do you disable a behavior which has been applied to a
TransformGroup? I've tried setting it to disabled, but it doesn't seem to
work.

Marcel nagm wrote:
>
> I think if you add a TransformGroup in another TransformGroup you can have
> the both Behavior, i did in my project but i don't recommend
> because you can accidentally move the object and orbit you scene.
> Good Luck
>
> 2010/12/12 spayeur
>
>>
>> I'm writing a Java3D application wherein the user will need to both
>> rotate/translate/zoom the universe, as well as manipulate objects within.
>> New to this, I'm looking for an approach. I've seen posts where enabling
>> OrbitBehavior disables the ability to pick objects using PickBehavior.
>> How
>> would one approach being able to both manipulate the entire scene versus
>> individual objects?
>>
>> Thanks,
>> Steve