Results 1 to 10 of 16

Thread: Get angle of wall

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #13
    Private
    Join Date
    Oct 2013
    Posts
    48
    Thanks
    10
    Thanked 4 Times in 2 Posts
    https://www.youtube.com/watch?v=jRcodiPLwfs


    So with:
    Code:
    newangles = VectortoAngles(newPos["normal"]) + (0,90,0);
    orangePortal.angles = (newangles[2],newangles[1],newangles[0]);
    Its working as it should. Its flat to the walls and flat to the floor and ramps.
    Still weird that somehow x,y,z changed.
    With orientToNormal the portal is still rotated into all directions. The values doesnt seem to be correct is you can see in the prints.

    Now there are 2 problems left until the portal placement is done.

    1. Sometimes the portals are stuck inside of the wall. (Video at: 0.04)
    2. For some reason its sometimes not taking the direction that it should. (Video at: 0.25)
    You can see that when i place the portal on the ground, its 90° rotated.
    Obv. thats only the case if i look in that direction, if i turn myself 90° the Portal is correct.
    So it seems like its not using the direction the player is looking at.
    Last edited by DjTranceFire; 28th October 2016 at 12:13.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •