• Advertisement
Sign in to follow this  

[java] Java3D rotation problems

This topic is 2417 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement