Bounding sphere around my world

Hi,

I’m trying to encapsulate the player within the extents of my world… This is what I did, hoping it would work.

I placed a large bounding sphere around my world.

The player was able to escape the bounds.

What am I doing wrong? Any help is appreciated.

You probably need to make a sphere with the normals pointing inwards.

–Eric

Thanks for the reply.

What you suggest makes sense, however there seems to be no way to access the normal data of the sphere.

I’m thinking of just creating 6 planes around my world. Is there a way to get at the normal data through the GUI?

You can just make your own sphere and invert the normals…would take maybe 5 seconds in Blender, for example.

Not quite sure what you mean…if you can see it, that’s the way the normal is facing. (Unless you’re using a 2-sided shader, but that’s rare.) If you look at a plane from the “wrong” side, it will be invisible, because the normal is facing the other way, and also objects will pass through from that side. Sort of like a one-way door.

–Eric