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.

Camera viewing / look at function?

Home Forums Puzzles Camera viewing / look at function?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9688
    PD
    Customer

    Hello all,

    I am wondering if there is a way to code the Camera to output what direction its viewing, like the direction in the coordinate system (specifically +X,-X,+Y and -Y).

    example: if the camera is looking at a cube centered in the middle (0,0,0) and based on the cube side it would output the direction or possibly what side of the cube it was viewing. lets say if you labelled the cube “Right, Left, Front and Back”?

    I would then like to have a function in puzzles that states
    if: camera is looking -X = direction or viewing the defined labelled side!!

    Hopefully this makes sense! Any help on this would be appreciated or if a function already exists could someone please provide the puzzle code on how this would work!

    Thanks,
    PD

    #9692

    Hi,

    Currently the behavior of such kind can only be implemented with some coding. Here is some details and an example:
    https://www.soft8soft.com/docs/api/en/core/Raycaster.html

    Chief 3D Verger | LinkedIn | Twitter

    #9714
    PD
    Customer

    Thanks Yuri!

    #9734

    :good:

    Chief 3D Verger | LinkedIn | Twitter

    #12048

    Update: the upcoming version 2.11 will be offering the get camera direction puzzle for that purpose.

    Chief 3D Verger | LinkedIn | Twitter

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.