Collisions Question
Blitz3D Forums/Blitz3D Beginners Area/Collisions Question
| ||
I have a game with two characters (animated meshes that I created) that fight each other. The charcters and their swords are separate meshes so I can tell if the enemy's sword collided with the player, or the player's sword collided with the enemy, or both swords collided, or both characters collided. I just need a little help on how to check these collisions in Blitz 3D. Thanks! |
| ||
Usually people use 3rd Party collision libraries like most commonly Tokamak. That is the only way to get polygon to plygon collisions and physics. If you don't then you have to use Blitz built in box collisions or radial. Then all you would have to do is...If CountCollisions(entity)>0 If CollisionEntity(entity,1)=entity2 ;DO THIS EndIf EndIF |
| ||
You could do a distance check between two sphere's, each parented to the swords. |