Centre of rotation and animation
I, like many others asking questions on this forum, am relitively new to Java3D, I have a couple of questions.
1. How do you set the centre of rotation of a branchgroup so that its child nodes dont rotate around the origin (0,0,0)?
I'm trying to create a simple character by loading each limb from a vrml file (.wrl) and then adding each from their respective
class to a "PlayerObject" class, and then intend to animate each limb, problem is, if I try rotating a limb it's centre of rotation seems
to be at 0,0,0 so the limb gets displaced fromt the rest of the limbs, what I'd like to do is set its CoR to a position I can specify e.g.
RightUpperArm would have a CoR at the position of the shoulder and then RightLowerArm's CoR will be at the end of the
RightUpperArm and added to it as a child...
2. The answer to this might make the above completely irrelivant, do VRML files support animation? and if so could someone point me to an example of using
I tried saving an animation to the .wrl but the application throws some exceptons when it tries to load the file. It could be that my loader for VRMLs doesn't support animation
so anyone got a link to a good vrml or .3DS loader with examples of use.
I'm grateful for any help.