Collision Problam

Blitz3D Forums/Blitz3D Programming/Collision Problam

amitjf(Posted 2006) [#1]
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?


Boiled Sweets(Posted 2006) [#2]
Could you post the code (just the bit relating to collisions?


amitjf(Posted 2006) [#3]
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


Damien Sturdy(Posted 2006) [#4]
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"


John Blackledge(Posted 2006) [#5]
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.


amitjf(Posted 2006) [#6]
i post a wrong argument it was
collisions player,scenery,2,2
but it still dont work


GfK(Posted 2006) [#7]
Are you calling UpdateWorld() in your main loop?


Damien Sturdy(Posted 2006) [#8]
Can't you just post your complete source code?? :/


Naughty Alien(Posted 2006) [#9]
i agree with Gfk..most probably UpdateWorld() isnt called in mainloop..


n8r2k(Posted 2006) [#10]
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


amitjf(Posted 2006) [#11]
Problam solved, it was the updateworld() i forgot to insert, thanks all.


Stevie G(Posted 2006) [#12]
School boy error ... we've all done it!!