Skip to content
Advertisement

Creating three plane geometry perpendicular to x, y and z axis?

I am supposed to create three plane geometries to the scene (one perpendicular to x axis, one perpendicular to y axis and one perpendicular to z axis) that would somewhat look like this. enter image description here So, herein is my code below for the same:

JavaScript

The output for the same is just appearing this way disappointingly: enter image description here I was wondering how do I make it look like the image I posted above? That they intersect at the centre that way and the surface meshes when added to the scene would appear at the centre intersecting point? Thank you so much for your help in advance.

Advertisement

Answer

You don’t need to change their position, since they all should go through 0, 0, 0. However, you need to change their rotation if you want them to align along different axes.

JavaScript

There’s also no need to create 3 different plane geometries. You can just re-use the same one 3 times.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement