A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by EvilTwin » Sat Oct 02, 2010 4:34 pm
So I'm trying to code a "Blockbreaker" with Irrlicht and Newton, and I wanted to know if there is any way to know which two bodies collided in NewtonContactProcess callback.
For more detail: I'm trying to code the functionality to actually "break" the blocks...
-
EvilTwin
-
- Posts: 4
- Joined: Sat Oct 02, 2010 4:11 pm
by Julio Jerez » Sat Oct 02, 2010 6:34 pm
In teh callback
- Code: Select all
void UserContactCallback (const NewtonJoint* contactJoint, dFloat timestep, int threadIndex)
{
const NewtonBody* body0 = NewtonJointGetBody0(contactJoint);
const NewtonBody* body1 = NewtonJointGetBody1(contactJoint);
...
}
-
Julio Jerez
- Moderator

-
- Posts: 12452
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by EvilTwin » Sat Oct 02, 2010 7:43 pm
Wow, thanks!

Have read that callback somewhere in this forum already, but when I tried to research on Newton Wiki, I did only find NewtonContactBegin and NewtonContactProcess... someone seriously needs to update the "api database"-link on the left side of the wiki so it doesn't point to deprecated functions anymore or at least includes the new ones... pretty hard for newcomers to get familiar with the engine if there's (appearently) only old functions shown... is there help needed on the wiki? because I would like to help with that stuff, reorganizing and stuff...

would allow me to get to know the engine quite thoroughly, you know?

-
EvilTwin
-
- Posts: 4
- Joined: Sat Oct 02, 2010 4:11 pm
by ledahut » Mon Oct 04, 2010 2:59 am
Yes create an account and correct pages, this is the purpose of a wiki.
-
ledahut
-
- Posts: 98
- Joined: Mon Jun 21, 2010 8:03 am
- Location: France
by JernejL » Mon Oct 04, 2010 3:45 am
EvilTwin wrote:Wow, thanks!

Have read that callback somewhere in this forum already, but when I tried to research on Newton Wiki, I did only find NewtonContactBegin and NewtonContactProcess... someone seriously needs to update the "api database"-link on the left side of the wiki so it doesn't point to deprecated functions anymore or at least includes the new ones... pretty hard for newcomers to get familiar with the engine if there's (appearently) only old functions shown... is there help needed on the wiki? because I would like to help with that stuff, reorganizing and stuff...

would allow me to get to know the engine quite thoroughly, you know?

Some page related to newtoncontectbegin is admittedly from times of 1.53 but most of wiki is up to date, but with some searching you would find this page:
http://newtondynamics.com/wiki/index.ph ... s_callback Wiki is still being written

we will sort it out. And as with all wikis you are welcome to add your findings, comments & remarks to pages and help working on it.
-

JernejL
-
- Posts: 1587
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 47 guests