What is your maximum speed
Moderators: winston, another_commander
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
Re: What is your maximum speed
@ Eric & Thargoid, you guys don't happen to have an example script or oxp using 'Velocity' do you, it sounds perfect for throwing out bits of debris when something explodes, especially if the direction could be randomised - is this the sort of thing that the sparks use when a ship goes into 'throwingSparks' mode?
Wiki homepage for my OXP: http://wiki.alioth.net/index.php/Griff_Industries
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: What is your maximum speed
Its used in the current version of military fiasco. When subentities are shot of a loose subentity is spawned at the old place with a velocity of 70% of the mothers velocity. That way it floats in the same direction as the mother. Before 1.75 such spawned subs suddenly had no speed at all and you flew into it during chasing the hydras. I used only 70% so that they still flew a bit backward compared to the mother.Griff wrote:@ Eric & Thargoid, you guys don't happen to have an example script or oxp using 'Velocity' do you, it sounds perfect for throwing out bits of debris when something explodes, especially if the direction could be randomised - is this the sort of thing that the sparks use when a ship goes into 'throwingSparks' mode?
For explosions, you probably you must generate a random vector: randomDirectionAndLength
Code: Select all
debris.velocity = new Vector3D.randomDirectionAndLength(maxSpeed);
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Re: What is your maximum speed
Speed is and will remain the inertialess engine speed component. Making physical sense has never been much of a priority around here. :-) Internally, this is completely separate fromThargoid wrote:One thing I did note though was that velocity has no effect on speed. I chucked several asteroids at the main station (as you do :twisted: ) and they all still had speed zero, despite moving at around 2500m/s.
velocity
, but it’s added (more precisely, [url=http://wiki.alioth.net/index.php/Oolite_JavaScript_Reference:_Ship#thrustVector]thrustVector[/url]
is) when retrieving velocity
and subtracted when setting it so you don’t have to be exposed to the full madness.It does, but they’re rather heavy. It’s more noticeable if you nudge some debris.Switeck wrote:Shouldn't ramming/nudging asteroids impart a speed on them as well?
E-mail: [email protected]
Re: What is your maximum speed
Fair enuff - as I said it just seemed a little unexpected. But I figured the reasoning would be something like that, hence why I just mentioned it in passing rather than raising it as a bug.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link