Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #5372
| From | Uncle Steve <stevet810@gmail.com> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: patroling space recipe |
| Date | 2015-04-01 18:07 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <9e2dcd36ccee724-431c3@gmail.com> (permalink) |
| References | <048bba75-6985-4edf-9bd5-f9f1e774c3a9@googlegroups.com> |
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.
--
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?
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
patroling space recipe fir <profesor.fir@gmail.com> - 2015-04-01 06:58 -0700
Re: patroling space recipe Uncle Steve <stevet810@gmail.com> - 2015-04-01 18:07 -0400
Re: patroling space recipe fir <profesor.fir@gmail.com> - 2015-04-03 00:08 -0700
csiph-web