Thursday, April 10, 2008

... and it made damage

Well I actually spend 20 mintues on this new physics thing yesterday ...

I stoped it because it ended up with my ship shooting through my little solarsystem.
Ther problem was not that I don't got any control about the physics, but because I ended up without any control over the forces. It was like my first trys of 3D motion.

The problem is that I don't got those anti momentum shield yet, that I've spocken of. All that they would make is to applay a force that would affect the actuall velocity so that its always pointing into the direction the ship looks. No problem, applay a force that rotates the ship and deliveres enought acceloration that also turns the actuall velocity vector.
But how dose a Force realy turn a object like a ship?

F = m * a

M = F * l

M = J * 'alpha'

J = ?

'alpha' is that what I need, but how dose I got J?
My ships are normaly not a easy shape so I could use the basic shapes J's for that ...
One way would be to easy take every object as a sphere and use J=2/5 m*r^2 ...
But somehow I would never be quite happy with it, but for now it have to be enougth ...

Also how dose I know how much a force dose rotate a object and how much it accelorates it? I don't got an answer on this one yet ...

And I made a misstake.
Its a habbit I dislike, but which can be handy from time to time. ... Somehow I don't got fear ... OK, I got fear from ... I can't think of anything yet, but I got it ... sometimes, as long its nothing like to code physics. What I mean is that did not prepare for that yesterday. Ther was no line I've drawn on paper before I started, and that is not good. You easyly loos track if you work like that ... and I'll have to change this!

And I'll start now with it ... today ... soon!
And make some basice logic for the physics!


Greg the Mad

No comments: