Edited by Russ, 24 June 2009 - 01:47 PM.
Pendulum
Started by
Russ
, Jun 24 2009 01:47 PM
4 replies to this topic
#1
Posted 24 June 2009 - 01:47 PM
Okay, I have a request for a very simple script request. I just need a script for a pendulum that wings back and forth. Something like in this video: http://www.youtube.c...h?v=-ymnNVJW7Qg Thanks to whoever does it.
#2
Posted 25 June 2009 - 07:34 AM
There is a parabola script, by slowing it down the closer it gets to certain x positions with a low arced parabola, it should mimic a pendulum.
#3
Posted 01 July 2009 - 09:40 AM
Are you after it slowing down at the top of the swing too?
Seeing as SHM is accurately defined, it shouldn't be too difficult.
Seeing as SHM is accurately defined, it shouldn't be too difficult.
#4
Posted 08 July 2009 - 09:59 PM
I *think* this should work:
CODE
float x = 0;
float y = 0;
float angle = 0;
float speed = 3; // or stuff
float norm = 0.2; // ...n stuff
angle += speed - Abs(Sin((angle + speed)) * speed) + Abs(Cos((angle + speed))) + norm;
x = anchor_x + Sin(angle) * dist;
y = anchor_y + Abs(Cos(angle)) * dist;
PARABOLA BEAM!!
#5
Posted 09 July 2009 - 01:07 PM
Thanks Gleeok! I'll try that out.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users