AnimMesh collisions, do they work?

Blitz3D Forums/Blitz3D Programming/AnimMesh collisions, do they work?

QuickSilva(Posted 2004) [#1]
I have some code that works fine with normal meshes (.b3d format) but when I change these meshes to animmeshes using the LoadAnimMesh command, so that I can access the children entities in it, the collision commands no longer seem to work. I have no idea as to why this is happening, any ideas?

Jason.


(tu) sinu(Posted 2004) [#2]
you need to specify a child of the entity to do collisions on ie

dog = loadanimmesh("dog.3ds")
entitytype dog,TYPE_PLAYER

should be something like

root = findchild(dog,"root")
enttitytype root,TYPE_PLAYER


QuickSilva(Posted 2004) [#3]
OK Thanks :)

Jason.


Spot(Posted 2004) [#4]
Wouldn't a recursive colllision type do the same thing?