A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [PV3D] How do you crete object movement inheritance?

  1. #1
    When you know are. Son of Bryce's Avatar
    Join Date
    Aug 2002
    Los Angeles

    Question [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?

  2. #2
    Join Date
    Jul 2007
    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
    If at first you don't succeed... Try not to look suprised.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center