Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
Ray Collision Test with animated meshes

juantar
Registered User
Quote
2012-05-24 01:38:29

How can I get the collision point of the current frame of an animated mesh with a line?

I tried the following:

//other_node is an animated mesh node
var other_selector = new CL3D.MeshTriangleSelector(other_node.Mesh, other_node);
var collisionPoint = other_selector.getCollisionPointWithLine(startLine, endLine, true, null);

But I get "k.MeshBuffers is undefined". Any suggestions how to do this?

thanks!


niko
Moderator
Quote
2012-05-24 17:11:39

Hm, yes, I think currently, there is no real support for a polygon based triangle collision with animated meshes. You could do this with the bounding box, but for real, exact collision, there would be some small extension necessary.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (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