Code center > Suggestions

Tie Forces

<< < (3/7) > >>

Numsgil:
I think I see what you're doing now.  You're applying a damping force, right?  Anyway, it won't work.  There will still be times when the forces cancel when they shouldn't.

Ulciscor:
I never did understand Mechanics; I think I lack the 'common sense' needed to work out all the forces and stuff. Stats and pure I am fine with.

Botsareus:

--- Quote ---There will still be times when the forces cancel when they shouldn't.
--- End quote ---

Nice.

WHEN?

P.S.

I can see the long way canceling out: ( I tend to think less write more code)

But the short way should work like butter. When is it canceling out in there?
Once again short way says dont apply it to the cnorm , but apply it to each spesific robot seporatly.

Numsgil:
You're forgetting something crucial:

1.  Force is equal to velocity squared * length * A, which Carlo's algorithm doesn't use.  This isn't a terribly difficult thing to fix.  However, it means you can't find the average of the velocities and use that.

For instance, suppose f(x) = x^2.  What is f(2)?  f(4)?  Take the average of that.  Does that equal f(3)?

No, it does not.  f((x1+x2)/2) does not necesarily equal (f(x1)+f(x2))/2   If you don't understand why that matters, you're not understanding the problem to begin with.

2.  what happens when the velocity of bot1 and bot2 are equal but opposite?  Let's have one's velocity be (5,0) and the others be (-5,0), and let's suppose the tie is along the y axis.

Well, their average is (0,0), which would imply no forces are created.  But obviously two bots tied and spinning around their center of mass should slow down in a thick medium.
That's really the crux.  You can't use the average.  One solution is to find where velocity equals zero (if it does at all) on the tie, and break the tie into parts.  First calculate the force on the part that's positive, then on the part that's negative.

Oh, and here's a fun little bit I forgot.  Since the drag force is distributed evenly along the tie, you can't just dump it into either bot.  The drag will apply torque to the bots.  And that, my friends, is just too much for my little mind to handle.

Does length cancel out?  Maybe it doesn't.  I don't know.

Maybe I'll go ask one of my math teachers.

Botsareus:
Doh I thought you ment spring fourses that are currently abserved by the tie itself (witch is stiff).

I get back to you after collage, but: I beleave the fource appyed on the robots is there fource as a whole (2 robots together) so its nothing wrong with plugging it the way it is now. , I need to write a simulation to really see whats going on....

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version