Why do we have to typecast NewtonContactJointGetFirstContact

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Why do we have to typecast NewtonContactJointGetFirstContact

Postby Van » Thu Nov 19, 2009 7:50 pm

Why do we have to typecast NewtonContactJointGetFirstContact() and NewtonContactJointGetNextContact() returned data?
Stop Global Whining.
Van
 
Posts: 17
Joined: Mon Nov 08, 2004 12:36 am

Re: Why do we have to typecast NewtonContactJointGetFirstContact

Postby Julio Jerez » Thu Nov 19, 2009 7:59 pm

Because it return a pointer to a node in a container. you can see the containre in the dContianer Library,

The node let you muve to next node and read teh data it contain, bu the are templates and there is not way to pass tha back in a C inteface.
and if it was possible the type isself is of not relevant used, and will generate a proliferation fo meaninless data types.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
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 2 guests