physics - endless swinging bar, want to slow to stop

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
muchachotron_v2
Posts: 4
Joined: Mon Aug 28, 2006 8:05 am

physics - endless swinging bar, want to slow to stop

Post by muchachotron_v2 »

i'm experimenting with the physics engine, and i'm already running into confusion.

i have a rectangle and i have set the origin point to one side of it:

(x = origin)
_______________________________
| x _____________________________|


i enabled physics for the group it is in, and have set the rectangle layer to utilize the origin as its point of rotation in the physics settings for the layer. i have greatly increased gravity and density. when i play the animation, it does seem to reduce its swinging behavior over time, but always gets to a point where it just keeps swinging back and forth, perpetually. i want it to eventually come to a stop. rather quickly, actually -- maybe only swinging a handful of times. think a heavy door in the ceiling, opens downward and swings a few times, but quickly ceases to swing any longer and just hangs down.

any thoughts on proper settings to achieve this?
muchachotron_v2
Posts: 4
Joined: Mon Aug 28, 2006 8:05 am

Post by muchachotron_v2 »

well, i just tried enabling the motor to the layer -- speed 0, torque 300, and it seems to help, but that doesn't seem to be logical to require that to make the animation stop -- my understanding is that the motor is there when you DO want perpetual motion and/or push-back against other objects. surely this isn't the only way to make a swinging object come to a stop (?)
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

Make sure it isn't "looping" during playback. I've done that before myself. The time line animation length makes it seem like it is "swinging" forever because it loops back.

The physics are very good and the swinging should stop eventually especially if you set the density and gravity.

-vern
sbtamu
Posts: 1915
Joined: Tue Dec 15, 2009 5:05 am
Location: Texas
Contact:

Post by sbtamu »

Try 500 gravity at 270 degrees, 100 density, pivot on origin, enable motor speed to 0 and motor torque to 50

P.S.

I been messing with this and 500 gravity might be a tad too much, it works around 250, with 50 density and 50 torque, messing with those parameters will get your result you are looking for.
Sorry for bad animation

http://www.youtube.com/user/sbtamu
Post Reply