Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wall Node #5

Open
PrashantKT opened this issue Nov 14, 2018 · 0 comments
Open

Wall Node #5

PrashantKT opened this issue Nov 14, 2018 · 0 comments

Comments

@PrashantKT
Copy link

PrashantKT commented Nov 14, 2018

As you have mentioned already in WallNode.swift.

  node.eulerAngles = SCNVector3(0,
                                      -atan2(to.x - node.position.x, from.z - node.position.z) - Float.pi * 0.5,
                                      0)
 // orientation of the wall is fairly simple. we only need to orient it around the y axis,
        // and the angle is calculated with 2d math.. now this calculation does not factor in the position of the
        // camera, and so if you move the cursor right relative to the starting position the
        // wall will be oriented away from the camera (in this app the wall material is set as double sided so you will not notice)
        // - obviously if you want to render something on the walls, this issue will need to be resolved
```.
        
I am facing the same issue. rendering into wall is flipped can you suggest a solution I am not able to figure it out 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant