A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Nitrogenycs » Tue Sep 09, 2008 12:32 pm
Hello Julio,
the CustomPlayerControllerSetPushActorCallback function seems to be missing a void* userData parameter. I also tried using CustomSetJointID, but it only takes an integer. Can you add a void* userData to CustomPlayerControllerSetPushActorCallback or maybe better add CustomJointSetUserData/CustomJointGetUserData functions?
Thanks for listening,
-Matthias
-
Nitrogenycs
-
- Posts: 12
- Joined: Fri Apr 07, 2006 4:45 am
by Nitrogenycs » Tue Sep 09, 2008 7:45 pm
Addendum:
I just tried to use the player controller, but it crashes. I found the reason why: at the top of SubmitConstraints it says
- Code: Select all
_ASSERTE (0);
So it seems like the player controller is not finished yet. I removed that line and tried again, but then it crashes later in the same function at the line
- Code: Select all
contacts = NewtonWorldConvexCast (m_world, &startCasting[0][0], &destination[0], m_horizontalSensorShape, ¶m, &staticFilterData, ConvexStaticCastPrefilter, info, sizeof (info) / sizeof (info[0]));
Can you tell me if the player controller is unfinished? Are there lots of things that need to be done to make it work? I started writing my own controller, but the Newton one looks quite good and similar to my approach with ConvexCast, so I'd like to build on top of it if that's possible.
-Matthias
-
Nitrogenycs
-
- Posts: 12
- Joined: Fri Apr 07, 2006 4:45 am
by Julio Jerez » Tue Sep 09, 2008 8:06 pm
That's because I made a modification ot teh convex cast and I added teh assete zero to remind my thatI had to change that.
I fixed it already, but I am i teh middel of a big update, if you need teh correct joint I can post teh code here, or just send me a PM.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Nitrogenycs » Wed Sep 10, 2008 4:02 pm
Thanks for your offer, pm sent.
-
Nitrogenycs
-
- Posts: 12
- Joined: Fri Apr 07, 2006 4:45 am
by Julio Jerez » Wed Sep 10, 2008 9:15 pm
Give a day to so the I can rebuild the engine.
I am adding a very special feature, that I beleiev many people will like it, I will just say it is relater to what you are asking.
but for that have the engine in a broken state.
I am sure it worl but I do nto wnat to send you a piece of untested code.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Nitrogenycs » Thu Sep 11, 2008 5:34 am
Cool, I'll wait and am looking forward to that very special feature
-
Nitrogenycs
-
- Posts: 12
- Joined: Fri Apr 07, 2006 4:45 am
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 15 guests