boundaries

Blitz3D Forums/Blitz3D Programming/boundaries

Picklesworth(Posted 2004) [#1]
What would be the best way to set up boundaries around a level so that the user can't pass through them? My current method uses way too many If statements for me to be very happy with.


electronin(Posted 2004) [#2]
1. Create a cube
2. scale it to the size of the boundaries
3. set up collisions between the cube and the player
4. set EntityAlpha cube,0

I think that will work.


jhocking(Posted 2004) [#3]
Don't forget to FlipMesh the cube so that the polygons are facing in.


Picklesworth(Posted 2004) [#4]
okay, thanks.