AppTor
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: AppTor
I guess I could add one, but it would just be this:
Code: Select all
body->t += torque;
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
-
- Posts: 41
- Joined: Mon Feb 14, 2011 7:10 am
- Contact:
Re: AppTor
That is what I currently do. But is not ApplyForce also body->f += force;
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: AppTor
If the offset is the zero vecter yes. If it's not, then it also generates a torque. http://code.google.com/p/chipmunk-physi ... Body.c#160
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
-
- Posts: 41
- Joined: Mon Feb 14, 2011 7:10 am
- Contact:
Re: AppTor
What is the reason that my using ApplyForce on and parallel to a circle's edge also causes translational movement? Is is that a pinjoint and springjoints are attached to its center?
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: AppTor
Applying a force always causes linear acceleration, if the force is off center then it also generates a torque.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Who is online
Users browsing this forum: No registered users and 6 guests