Collision Problam
Blitz3D Forums/Blitz3D Programming/Collision Problam
I created a little village in 3ds and imported it to blitz.
i made a collision with it
collisions player,scenery,2,2
when the player is the player model and the scenery is the village. but its dont work...
why?
Could you post the code (just the bit relating to collisions?
here is what i wrote:
entitytype man1,player
entityradius man1,5
after that
entitytype town1,scenery
entityradius town1,5
and after that
collisions player,town1,2,2
I think that all
collisions player,town1,2,2
should be
collisions player,scenery,2,2
Also, have you given "Player" and "scenery" different values?
it'd be better also if instead of "Player" and "Scenery" you used "PlayerType" and "SceneryType"
Also try other (or no) radius values for town.
A radius value of 5 for a whole town?
But really, you seriously need to study the examples that come with Blitz.
i post a wrong argument it was
collisions player,scenery,2,2
but it still dont work
Are you calling UpdateWorld() in your main loop?
Can't you just post your complete source code?? :/
i agree with Gfk..most probably UpdateWorld() isnt called in mainloop..
I agree with Cygnus.
Did you actually assign values to the player and scenery variables? They have to be different.
Just post the whole code in its entirety
Problam solved, it was the updateworld() i forgot to insert, thanks all.
School boy error ... we've all done it!!