A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Carli » Tue May 25, 2010 11:13 am
Hi,
i would like to have a userdata in ForEachBodyInAABBDo.
i made a workaround with a global variable that represents a stack (for recursive finding) etc., really hacky and I would like to write it as a clean code
-
Carli
-
- Posts: 245
- Joined: Fri Oct 02, 2009 5:28 am
by Julio Jerez » Tue May 25, 2010 2:17 pm
Ha Ok, next version.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by JernejL » Tue May 25, 2010 4:47 pm
That was ALREADY added.. in newton 2.0.. i think it was in 2.15 or so.
-

JernejL
-
- Posts: 1587
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
by Julio Jerez » Tue May 25, 2010 5:36 pm
Oh yes I just looked at the prototyope
void NewtonCollisionForEachPolygonDo (const NewtonCollision* collision, const dFloat* matrix, NewtonCollisionIterator callback, void* userData);
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by JernejL » Tue May 25, 2010 6:00 pm
He meant this one:
NEWTON_API void NewtonWorldForEachBodyInAABBDo (const NewtonWorld* newtonWorld, const dFloat* p0, const dFloat* p1, NewtonBodyIterator callback, void* userData);
-

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 1 guest