Cant get some of my issues fixed

In the, if I uncomment the ai object avoidance at line 127, it crashes when you load a level to play. Which is a shame, because now they run into the walls and then stop.

AssertionError: !is_infinite() at line 49 of c:\buildslave\sdk-windows-i386\build\built1.10\include\boundingSphere.I

The player gets ‘caught’ on the walls. I dont know why that would be. It’s also possible to go through a wall, which is especially bad when the rabbits do it. I’ve put it back on colliding with the geometry, which is the best one of the options I tried. Seems to keep the rabbits in at least.

I’m completely failing at texturing the walls. Dunno why, I feel like I overlooked something obvious. It seems to put a sort of smoothed color on the wall instead of the texture. line 164,172-173 The comment stuff is things I tried that didnt change anything.

Could you post an excerpt of the relevant code for this, please?

(It’s easier to study a short section than to comb through an entire program that I’m not familiar with, I find.)

Based on your description, could it be that your walls don’t have UV coordinates?

That indeed seems to be the problem. Testing with setTexGen does make the texture show up.
wallBlock.setTexGen(TextureStage.getDefault(), TexGenAttrib.MEyePosition)
That points me in the right direction. Thanks.

1 Like