Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Math help...again

Author
Message
Takeshii
21
Years of Service
User Offline
Joined: 15th Feb 2004
Location:
Posted: 19th Dec 2005 19:23
Ok, Im no Math Wiz and need some help. Ive never really dealt with math to this extreme and i took my best shot at it. Can somone please make my rotation more accurate. The function works fine, the problem is in where it calculates when and how much to rotate it. I dunno, just take a look



Dark
TDK I Love you...... And yes, you should be scared
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 19th Dec 2005 19:54
This is vector math. And I don't think there will be alot of people that will know how too calculate these kinds of problems.

My best guess would be this:



The cube falls at an angle, on the point where it hits the ground, a new force is added. This force starts at the point of hit, and = -v * bounce with v = the force downwards. When you calculated this force, you can calculate the the rotation force on the object.
Takeshii
21
Years of Service
User Offline
Joined: 15th Feb 2004
Location:
Posted: 21st Dec 2005 19:06
So im going to have to store the xy coords of all the corners, then make acheck for each one of them if they collide with a barrier. Then (not perfect i know :/ ) we could take the dist from the corner that collides and the center, and take the ratio of the y/x (tan)and add that to the spinning? i dunno, im not home right now so i cant check.

Dark
TDK I Love you...... And yes, you should be scared

Login to post a reply

Server time is: 2025-05-22 21:21:33
Your offset time is: 2025-05-22 21:21:33