kenobi
4/3/2015 7:08:00 AM
W dniu czwartek, 2 kwietnia 2015 15:22:37 UTC+2 uzytkownik Uncle Steve napisal:
> On Wed, Apr 01, 2015 at 06:58:07AM -0700, fir wrote:
> > I am lurking long time to do that
> >
> > probably it is not so hard to do
> > also is not so easy
> >
> > you got small starship (say 10 meters
> > long) you also need some small cosmic
> > station or 'buoy' in space
> >
> > the ship has to fly around the buoy
> > (not sure how far probably about 500
> > meters, and waste a time - but in general
> > its movement should look nice,
> >
> > It could probably slowdown and
> > acclelerate and move gracefully
> >
> > I need a recipe for this movement when basic
> > operations you have is
> >
> > MoveForvard(float distance)
> > StrafeRight(float distance)
> > StrafeUp(float distance)
> >
> > MoveYaw(float distance)
> > MovePitch(float distance)
> > MoveRoll(float distance)
> > // (you know whats that, isnt, you)
> >
> > you may asume 50 frames per
> > second
> >
> > void MoveShip()
> > {
> > static frame = 0;
> >
> > MoveForvard(1.0); //50 m/s forward
> >
> > //... what recipe here ?
> >
> > frame++;
> >
> > }
>
> You can simplify the problem considerably if you choose a frame of
> reference in which the spaceship is at rest. Then, translate or
> rotate space about the spaceship in any way you like. With this
> method I am fairly sure that you will achieve framerates far in excess
> of your baseline rate, and which ought to leave plenty of computer
> horsepower for things like player missles and such.
>
>
I need maneuvres/moves not for player ship
but for side bots, I dont worry abut efficiency (this is cheap) i only need
it to look fine.. Need to define some fine looking movement behaviours in code that
calls to the simple 6 movements: yaw, pitch, roll, forward, right, up
>
> --
> A farmer has twelve workers who require three weeks to harvest the
> farmer's fields. The farmer eats four workers. How long will it take
> him to harvest his crops if all of the other independent variables
> remain constant?