POV-Ray : Newsgroups : povray.binaries.animations : Space Fight 4 (cool explosions) : Re: Space Fight 5 (camera follows ship) Server Time
2 Nov 2024 03:15:07 EDT (-0400)
  Re: Space Fight 5 (camera follows ship)  
From: Slime
Date: 28 Sep 2002 19:03:52
Message: <3d963558$1@news.povray.org>
> Do the ships simply aim at the current position of the target, or do
> they take into account the velocity of the target and try to calculate
> where the target will be when the laser has reached it? The latter would
> probably be more interesting and force the ships to fly in non-straight
> unpredictable curves to avoid being hit. :)


That's exactly what's happening. =)

The chaser is always moving towards the place that the victim would be in
the future if a laser were to be shot from the current distance. When the
chaser has sucessfully oriented himself so that that place is in front of
him, he shoots. I purposely made the calculation of this point in space with
a more simple formula than should have been used, but it's accurate most of
the time. This gives the impression of imperfect aim.

The victim, however, is able to tell when he is being targeted, and does his
best to avoid the direction that the chaser is currently facing. This
usually means that the victim is able to get away if he's fast enough, but
if there's too much time, then the chaser usually succeeds.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.