Post

Replies

Boosts

Views

Activity

Comment on How to get a 2D floor plan with dimensions from RoomPlan
Hey @Brent185, Glad it cleared things up! The scalingFactor is just an arbitrary number to make sure the size of the surfaces and objects is big enough to see in the SKScene. The actual number inside dimensions and transform is in meters, so to convert to 'actual dimensions' you have to do nothing! :D I apply a scalingFactor, otherwise a wall of 5 meters would be 5 points long and in most SpriteKit scenes, this is so small, you would barely see it.
Topic: Graphics & Games SubTopic: SceneKit Tags:
Apr ’23
Comment on How to get a 2D floor plan with dimensions from RoomPlan
Hey Brent, Don't be sorry ;) Basically, the dimensions give me the span (that is indeed the length) of the wall. This doesn't tell me anything about the position or rotation of the wall, just it's length or x value. I believe the direction you're after is the zRotation of my wallNode. It is calculated from the eulerAngles out of the transformation matrix.
Topic: Graphics & Games SubTopic: SceneKit Tags:
Mar ’23