User data

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

User data

Postby JoeJ » Sun Apr 02, 2023 7:28 pm

3.14 had user pointers. Is there something similar in 4?
Did not find anything in the dgBody class at least, so probably not.

But maybe i missed something. It would like to put some bit packed information to the bodies.
To implement things like ray or collision filtering.

Oh, and another question. Is there something like packet traversal for ray tracing?
Currently i trace rays from foot body corners down to check for the ground.
But each foot has 2 bodies, so that's 16 rays just for that. But they all have the same direction and start from nearby locations.
User avatar
JoeJ
 
Posts: 1453
Joined: Tue Dec 21, 2010 6:18 pm

Re: User data

Postby Julio Jerez » Mon Apr 03, 2023 10:55 am

It is the ndNotify class, check out any demo.

That object now encapsulates, code and data, so it is much more flexible than it was in 3.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 54 guests