Seting Boundaries

What is the best way to set boundaries in a flight simulation type application in a 3D

enviorment



Answer this question

Seting Boundaries

  • Ivan S

    Can you explain more what you mean, its not clear to me what you want.

  • chrisj

    Well since you know the x,y,z position of your player you can check that against suitable bounds.

    e.g. if (x>1000) or (x<-1000) then 'out of bounds'

    Or you could do a distance check from the origin

    e.g.

    Vector3 position = new Vector3(x,y,z);

    if (position.Length()) > 1000 then 'out of bounds'

    Or you could look up on some kind of map in an array if that is a sutable place for the player

    There's a lot of ways to do this so I guess you will have to be more specific if my simple answers are not enough.



  • enuffznuff

    seting boundaries so players can only go so far in the world

    hope this helps you understand


  • Seting Boundaries