Game Development Community

Collision detection

by Ironbelly Studios · in Technical Issues · 07/25/2006 (2:49 am) · 5 replies

Hi everyone
can anybody help me in getting collision into my game
i was trying to make a game using torque and when i put in all the things inside it
now the player is not detecting anything into it
it collides with the buildings and structures of the sort and stops
but it simply passes through the other things like other player model and tommy gun and ammo and all the things of the sort
whereas i wish that it collide with the gun and pick it up
which is not happening
thanking you

#1
07/25/2006 (3:32 am)
Do you have your collision mesh setup correctly for your player model?

The Tommygun and ammo should also be setup as ItemData blocks. Have a look at the starter.fps at the ammo and the crossbow.
#2
07/26/2006 (5:50 am)
Thanks Burning
i dont know about the collision mesh
please inform me in detail about it and how to implement it
thanking you
#3
07/26/2006 (6:47 am)
Just search for it , info is everywhere!
#4
07/26/2006 (11:33 pm)
Check out this link:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10633

Has a good diagram on how to set up the heirarchy. Make sure you do that EXACTLY!

Also, the player is not going to pick up the gun unless it is defined in player.cs that he can hold it in his inventory. It's under the datablock "PlayerData(PlayerBody)". The code you'll need is something like this:

maxInv[your_weapon] = 1 ;
maxInv[your_weaponAmmo] = 150 ;

Hope this helps.
#5
08/07/2006 (10:55 pm)
Hi
thanks to everyone

hey steven
can u please tell me detail from starting what all should i do to put an item properly and then get it detected by the player when collided with it and then it scould be mounted onto the player colliding with it
i had gone through th elink u provide it was not of much help since it is related to how to make a model in 3d max and then put it in the torque environment
i had already put the rifle provided in the TGE and now i wish that my player while colliding with it picks the rifle
which means th erifle must get off the place where it was showing and mount on the player hands
please see if u can do something in this regard
help much appreciated
thanking you