A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by hach-que » Tue Jan 06, 2009 7:14 am
I'm using NewtonBodySetMatrix to change the position and rotation of a static object (I'm not doing this in a callback). It doesn't seem to have any affect on the static newton object.
Am I using the function incorrectly?
Last edited by
hach-que on Sat Jan 24, 2009 4:15 am, edited 2 times in total.
-
hach-que
-
- Posts: 27
- Joined: Fri Jun 13, 2008 2:11 am
-
by hpesoj » Tue Jan 06, 2009 9:13 am
It should work, but note that since static bodies do not move, any transform callback you assign will not be called. You will have to update your visual representation manually whenever you use NewtonBodySetMatrix on a static body.
-
hpesoj
-
- Posts: 90
- Joined: Sun Jan 09, 2005 4:36 pm
- Location: Cambridge/Bristol, UK
by hach-que » Tue Jan 06, 2009 7:59 pm
I call NewtonBodySetMatrix when the function to modify the position/rotation of the graphical object is called, but the other Newton objects appear to go through it sometimes.
UPDATE: I fixed it.
-
hach-que
-
- Posts: 27
- Joined: Fri Jun 13, 2008 2:11 am
-
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 15 guests