Known problems with Sphere>Poly collisions?

Blitz3D Forums/Blitz3D Programming/Known problems with Sphere>Poly collisions?

Gabriel(Posted 2005) [#1]
Surprisingly ( or perhaps not ) I've got this far without ever using Blitz's own collisions. And now I'm beginning to remember why. I've got a simple poly mesh, with entitytype of 2, a simple sphere, with entity type 1 and collision radius of 5, and no matter what I do, the sphere won't collide with the mesh.

I can't post working code, but the important parts, to verify, are :

Global PlayerMesh=CreateSphere()
ScaleEntity PlayerMesh,5,10,5
PositionEntity PlayerMesh,0,10,0
Global PlayerCollider=CreateSphere()
PositionEntity PlayerCollider,0,5.05,0
EntityRadius PlayerCollider,5
EntityType PlayerCollider,1
EntityParent PlayerMesh,PlayerCollider


Scene=LoadAnimMesh("Scene\Scene.b3d")
CollisionMesh=FindChild(Scene,"Collision")
HideEntity CollisionMesh
EntityType CollisionMesh,2
Collisions 1,2,2,1


And yes, I do have an UpdateWorld in my main loop ;)


Stevie G(Posted 2005) [#2]
Your are using Hideentity Collision Mesh so it won't register a collision. Use entityalpha CollisionMesh,0 and it'll work.

Stevie


Gabriel(Posted 2005) [#3]
Aha, thanks. I had no idea hidden entities didn't register collisions.