Greetings Away3D.dev group!
I've been trying to creating procedural objects in Away3D broomstick,
but I have run into a problem with object rotation. I have inserted a
bunch of cubes into an ObjectContainer3D, but when I do movePivot(),
it doesn't seem to do anything when I execute a yaw() on the
container.
To give a pseudo code of what I am doing:
container.addChild(cube1);
container.addChild(cube2);
container.addChild(cube3);
container.addChild(cube4);
container.movePivot(100, 100, 100); // Cubes of default size
(100x100x100) are placed into a bigger cube, so the max points should
be 200, 200, 200...
// therefore
the center should be 100, 100, 100
cube.getBlockObject().yaw(1);
The cubes are place correctly, but it looks like they are rotating
around 0,0,0
Can anyone shed light on my issue? I feel like it is something I'm
missing, but I cannot figure out how to get it to rotate correctly.
Thanks,
Ken