Collision Problems
Blitz3D Forums/Blitz3D Beginners Area/Collision Problems
| ||
im trying to get it so where the player can't walk through solid objects (walls,trees,fence.. etc) i've declared the objects as an entity type, (PROPS) with the code: EntityType character,PLAYER and : EntityType foodshop,PROPS etc... then i do collisions like: Collisions PLAYER,PROPS,2,1 which makes teh character not be able to pass through the objects and walls. which works fine except that if the character keeps moving forward into a building for a little bit, it takes the player awhile to get back out, and when he does, it warps the character quite a ways from the building... OR he gets completely stuck there... is there a way to make it so where the character can't run through the building, AND it won't have these problems? |
| ||
I'm a beginer myself, but I think you need to a. see entityradius in the blitz docs b. if you have a an entity radius assigned to your player try to increase the entity radius. c.make collision boxes (see entitybox - blitz docs) d.see the only poly to poly colition in blitz MeshisIntersect |
| ||
I looked there, and i changed the line of code to: Collisions PLAYER,PROPS,2,2 fixed it so where it slides instead of stops, so now they don't get stuck.. thx =) |