can add a new function call: NewtonbodyAddAcceleration()

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

can add a new function call: NewtonbodyAddAcceleration()

Postby chankahou » Thu Apr 14, 2011 1:04 am

is there any function about added gravity directly
because in "NewtonBodySetForceAndTorqueCallback" callback function
i always use "NewtonBodyAddForce" to apply the gravity: mass*-9.8

so i want some function can by included in this library like:
NewtonbodyAddAcceleration(body, gravity);

thank for the good physics engine~
chankahou
 

Re: can add a new function call: NewtonbodyAddAcceleration()

Postby JernejL » Thu Apr 14, 2011 3:11 am

Acceleration is a result of adding force.

Adding that would mean supporting pure lazyness. It's no different to if you made this function yourself.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1587
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron