We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

qiangge

Forum Replies Created

Viewing 3 posts - 31 through 33 (of 33 total)
  • Author
    Posts
  • in reply to: Question about using OrbitControls for Child Camera #69420
    qiangge
    Participant

    demo2
    I’ve uploaded a demo that uses the default controls with the method I used last night. Please take a look. Shanks KDV

    • This reply was modified 11 months, 3 weeks ago by qiangge.
    • This reply was modified 11 months, 3 weeks ago by qiangge.
    • This reply was modified 11 months, 3 weeks ago by qiangge.
    Attachments:
    You must be logged in to view attached files.
    in reply to: Question about using OrbitControls for Child Camera #69415
    qiangge
    Participant

    I used 3dsMax, and the principle should be the same as what you described. I tried both methods, and the result is similar to the demo I provided earlier. The camera follows the parent object and always faces the target object, which is correct. However, the issue arises when the target object moves away from the origin—the orbit path becomes strange. Could it be a bug specific to the Max version?

    Attachments:
    You must be logged in to view attached files.
    in reply to: Question about using OrbitControls for Child Camera #69412
    qiangge
    Participant

    Great! This is the effect I wanted, thank you, KDV! Is this constraint set up in 3D software beforehand? Because I couldn’t find this part in the JavaScript logic. Could you display the key code or logic for this? My confusion is, if the character and the camera are not grouped, how does the camera follow the character? The target point of the camera can be constrained to the position of the character. Can you please advise on how to set up the camera? Thanks again, KDV.

Viewing 3 posts - 31 through 33 (of 33 total)