Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
Collision with AnimatedMeshSceneNode

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.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact