Michael_J Posted November 18, 2015 Share Posted November 18, 2015 Can anyone else verify that a collision callback, when the response type is Trigger, only returns 0,0,0 for position and normal. Setting the response type to Collide returns expected results. I mean, even if the response is only a trigger, it should still be able to return at LEAST where the collision took place, yes? Quote --"There is no spoon" Link to comment Share on other sites More sharing options...
Josh Posted November 18, 2015 Share Posted November 18, 2015 If the trigger type is used, an intersection test is performed. This is because a regular collision test will fail if one object is entirely inside another so that no faces intersect. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Michael_J Posted November 18, 2015 Author Share Posted November 18, 2015 Ah, that makes sense... Ok, is there any type that acts like a trigger (no physics response), but does perform a "regular" collision test (understanding the limitation that if one object is inside another the test would fail); or could one be added in short order? Namely, I'd like to do some VFX work where a collision occurs between two objects, but I don't want a physics reaction when this happens. Depending on the shapes of the objects, a ray test wouldn't always work for something like this... Quote --"There is no spoon" Link to comment Share on other sites More sharing options...
Josh Posted November 18, 2015 Share Posted November 18, 2015 This isn't directly supported. Newton has some functions that can do this. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Michael_J Posted November 18, 2015 Author Share Posted November 18, 2015 I don't really see where you expose the data needed to use Newton functions such as http://newtondynamics.com/wiki/index.php5?title=NewtonCollisionCollide Is there a way to at least get the NewtonBody pointer for a Leadwerks entity that has collision? This would then allow me to get the required information using other Newton functions such as http://newtondynamics.com/wiki/index.php5?title=NewtonBodyGetWorld Thanks Quote --"There is no spoon" Link to comment Share on other sites More sharing options...
Josh Posted November 18, 2015 Share Posted November 18, 2015 See the headers for NewtonDynamicsBody Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Michael_J Posted November 18, 2015 Author Share Posted November 18, 2015 Got it--thanks! Quote --"There is no spoon" Link to comment Share on other sites More sharing options...
Michael_J Posted November 18, 2015 Author Share Posted November 18, 2015 Edit: got it, yes. Thanks Josh.... Quote --"There is no spoon" Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.