-
When you know are.
[PV3D] How do you crete object movement inheritance?
I have a scene where I have a FreeCamera3D aimed at a point using the lookAt() function. I would like to rotate the camera around the target. I figured there must be some way to "parent" the camera to a point so that if I rotate or move that point the camera will move with it.
I tried by using addChild() to parent the camera to the point but when I move the parent, the camera doesn't move with it.
Is there any way to accomplish this?
-
You can't use addChild() on a camera like that. What you can do is create a empty 'dummy' displayObject3D and 'parent' that. Then in your render cycle sync your camera position to the position of your dummy displayObject().
Hope that makes sense
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|