Support - Forum aa
« Back to Support» Moving/Rotating Pivot3D does not affect Children
Posted on 02.01.2012 by Chau, Sam
I have loaded 3 seperate planets to the scene, and then added them to a Pivot3D container ('galaxy'). When I rotate galaxy, I would expect the children to rotate as well (as if orbiting a point). However, the children (the 3 planets) do not move at all. To combat this I am having to do galaxy.foreach(RotateFunction) to get them rotating! Surely I shouldn't have to do this?
Translating/moving does not work either.
Translating/moving does not work either.
Reply By Nehmad, Ariel 02.01.2012
Hi Sam,
are you loading the objects from an external file?
could be possible that you have the camera parented to the galaxy?
try to create a new camera like this:
scene.camera = new Camera3D();
are you loading the objects from an external file?
could be possible that you have the camera parented to the galaxy?
try to create a new camera like this:
scene.camera = new Camera3D();
Reply By Chau, Sam 02.02.2012
Hi Ariel,
the objects are loaded in from an external f3d file using scene.addChildFromFile("file.f3d");
I call a function just before loading the assets that does:
scene.camera = new Camera3D()
scene.camera.setPosition(-100, 380, -1000);
scene.camera.lookAt(0, -270, 40);
Does the camera really affect the pivots? I want the camera to be fixed and not rotate. It is the 'galaxy' container which should rotate, like a carousel, and in turn, rotate it's children accordingly.
the objects are loaded in from an external f3d file using scene.addChildFromFile("file.f3d");
I call a function just before loading the assets that does:
scene.camera = new Camera3D()
scene.camera.setPosition(-100, 380, -1000);
scene.camera.lookAt(0, -270, 40);
Does the camera really affect the pivots? I want the camera to be fixed and not rotate. It is the 'galaxy' container which should rotate, like a carousel, and in turn, rotate it's children accordingly.
Reply By Nehmad, Ariel 02.02.2012
Hi Sam,
cameras does not affect pivots, but external files usually comes with cameras that are parented to the loaded file.
so, when you use one of those cameras, and then, rotate the container, you may rotate the camera too....and you'll no changes at all.
can you share some code to get more info and see where is the problem?
cameras does not affect pivots, but external files usually comes with cameras that are parented to the loaded file.
so, when you use one of those cameras, and then, rotate the container, you may rotate the camera too....and you'll no changes at all.
can you share some code to get more info and see where is the problem?
Popular
- 1. Question of Alpha sorting system
- 2. Rndering issue on AIR Mobile build
- 3. Problems with bone position?
- 4. Is it possible to make a primitive...
- 5. Messed up textures in Flare 3d Studio
- 6. Moving "by hand" the corners of a Plane
- 7. Shapes, splines and knots
- 8. Diferencia entre Flare3D Studio y...
- 9. Transform between two states
- 10. ReferenceError: Error #1074
