andargor
Member
|
Applying Force to Part of an Object
Is it possible to apply force to part of an object? For example, in zero G, if force is applied to the corner of one of the faces of a cube, it will spin.
How would I go about doing that? Creating a multi part object and applying the force to the parts?
|
|
04-25-2011 06:16 AM |
|
Driklyn
Member
|
RE: Applying Force to Part of an Object
That could work. You can also specify the position of where the force/impulse should be applied.
Code:
Actor& addForce (Vec &force, Vec &pos);
Actor& addImpulse(Vec &impulse, Vec &pos);
|
|
04-25-2011 08:06 AM |
|
andargor
Member
|
RE: Applying Force to Part of an Object
(04-25-2011 08:06 AM)Driklyn Wrote: That could work. You can also specify the position of where the force/impulse should be applied.
Code:
Actor& addForce (Vec &force, Vec &pos);
Actor& addImpulse(Vec &impulse, Vec &pos);
Aha! Didn't see that, thanks!
|
|
04-25-2011 04:44 PM |
|