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 ;)
|