PDA

View Full Version : Spinning top's speed



JadenB
08-31-2017, 08:58 AM
Hello

I'm new to OpenGL and I'm trying to create a small spinning top. I want it to eventually fall by changing its rotation angle, but right now I'm focused on its rotation speed.
I'm having a hard time figuring out how to change the angle so that it'll look like it starts rotating in high speed and the speed slowly dwindles.

My Timer method in C#: Interval is set for 10msecs.

private void timerRUN_Tick(object sender, EventArgs e)
{
cGL.angle = //to implement a good decreasing function
cGL.Draw();
}

I'd appreciate any help

Thank you.

ZoraPortis
08-31-2017, 11:27 PM
Hello

I'm new to OpenGL and I'm trying to create a small spinning top. I want it to eventually fall by changing its rotation angle, but right now (https://vogueplay.com/br/halloween-slot/) I'm focused on its rotation speed.
I'm having a hard time figuring out how to change the angle so that it'll look like it starts rotating in high speed and the speed slowly dwindles.

My Timer method in C#: Interval is set for 10msecs.

private void timerRUN_Tick(object sender, EventArgs e)
{
cGL.angle = //to implement a good decreasing function
cGL.Draw();
}

I'd appreciate any help

Thank you.

I've stumbled upon the same problem recently and I couldn't make it out :(
I hope someone else will help us here.