This repository was archived by the owner on Jan 25, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Wall Node #5
Copy link
Copy link
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels