A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Auradrummer » Fri Jan 23, 2009 6:33 pm
Me again ...!!!!!!!!
I upgraded my Newton Dynamics to the public version. I`m not having big problems, really, but some doubts:
1. The functions I set as callbacks usually asked me two args: (NewtonBody* body, dFloat timestep). Now, they are asking me for a third parameter, an int.
First: what happens if I declare anything instead of timestep in the function? I`m not using this timestep anywhere.
Second: what is that int?
2. I made my car based in the old `MonsterTruck` example. The structures Axle, Tires and the car are returning the error `Cannot allocate ... abstract type` and ` because virtual functions are pure within ...` and so on. Someone have any tip?
I`m still working over those questions, but if is a natural issue, I think some tip could make my work easier.
Thanks again to everybody!
Developing a racing game.
-
Auradrummer
-
- Posts: 132
- Joined: Sat May 17, 2008 9:17 am
by Leadwerks » Fri Jan 23, 2009 7:39 pm
A lot of the callbacks have an extra parameter for the thread now.
-
Leadwerks
-
- Posts: 569
- Joined: Fri Oct 27, 2006 2:54 pm
by Auradrummer » Sat Jan 24, 2009 11:57 am
Thanks Werks, but I mean 'what I have to pass there?'
Developing a racing game.
-
Auradrummer
-
- Posts: 132
- Joined: Sat May 17, 2008 9:17 am
by agi_shi » Sat Jan 24, 2009 12:45 pm
Considering it's a callback, you don't pass anything, Newton does. It simply tells you which thread index is currently calling this callback.
-
agi_shi
-
- Posts: 263
- Joined: Fri Aug 17, 2007 6:54 pm
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 23 guests