ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperLicht
forum topic indicator Collision with AnimatedMeshSceneNode
person icon
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

person icon
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:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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