Sign in to follow this  
TheCrow33

[java] Java3D rotation problems

Recommended Posts

TheCrow33    120
So I'm just learning to use Java3D (which I have heard is deprecated now?), and I'm trying to figure out how I can rotate an object without having to move it to the origin. To put this into perspective, I've created a Person.java class which is essentially a couple of TransformGroups (head, torso, right leg, left leg....) inside each of those transform groups are 3D Shapes which I have dubbed Box.java (just a polygon array that creates a simple box of a specified dimension and offset). The problem as it stands is that if I want to rotate the right arm then I create a new transform3d and act on the Transformgroup for right arm. However no matter how I try this, it moves that right arm right into the center of the torso (because the torso is centered at the origin). Is there anyway at all to rotate in place, without moving to the origin?

Share this post


Link to post
Share on other sites
tebriel    904
Still working on this? I might be able to help if so.

(Btw, I made the same mistake going w/Java3D at first before I ported to jMonkey, and haven't looked back since - you should try it.)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this