I need 2 entitys with the same type, to collide
Blitz3D Forums/Blitz3D Beginners Area/I need 2 entitys with the same type, to collide
| ||
Greetings Mortals, I am the Mighty WERDNA.(Lord Of Darkness\Dorkness) I am making a 3D game where I create several small vehicles, using a FOR, loop. Like This Global Vehicle_Type = 1 Function MakeVehicle() For Vehicles = 1 to 100 Vehicle.Vehicle = New Vehicle Vehicle\x = rand(0,100) Vehicle\y = rand(0,100) Vehicle\z = rand(0,100) Vehice\Type = Vehicle_Type Next End Function Now my problem is that I need these vehicles to be able to over lap with each other, So they don't all just bunch up. So my question is, how do I get several Entitys created using a FOR loop, that all have the same Type, to over lap. The Mighty WERDNA is in need of your help, so please get back to me as soon as possible. |
| ||
Not sure what you mean by overlap. If you want collision then simply do something like this: Collisions Vehicle_Type,Vehicle_Type,1,2 Try to avoid polygonal collision detection since it may be much slower. |
| ||
Thanks man, thats exactly what I needed. Should work perfectly for the game I'm working on. |