codedreamer Registered User |
Quote
|
2011-12-09 16:51:59 |
|
I noticed that in CopperCube that the AnimiatedMeshSceneNode node does not have a “Collision” attribute. In my JavaScript code I’m using scene.getCollisionGeometry().getCollisionPointWithLine to detect point collisions on objects within the scene. However, it appears that this approach only works on MeshSceneNode types. What is the approach for detecting collisions on animated objects (i.e. shooting animated creatures)? Examples?
Thanks
|
niko Moderator |
Quote
|
2011-12-10 07:32:00 |
|
Use bounding box collisions for those, that's much faster. Of course you could also create a TriangleSelector for the current shown animated mesh, but you would need to contruct this every frame because it animates, and this would be a bit slower.
|