What is your maximum speed

General discussion for players of Oolite.

Moderators: winston, another_commander

What is your maximum speed

200 or less
0
No votes
200 to 300
3
14%
300 to 400
12
57%
400 to 500
3
14%
More than 500
3
14%
 
Total votes: 21

User avatar
Griff
Oolite 2 Art Director
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

Post by Griff »

@ 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?
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: What is your maximum speed

Post by Eric Walch »

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?
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.

For explosions, you probably you must generate a random vector: randomDirectionAndLength

Code: Select all

debris.velocity = new Vector3D.randomDirectionAndLength(maxSpeed);
I experimented with it for an exploding station in UPS, but I never implemented it.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: What is your maximum speed

Post by JensAyton »

Thargoid 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.
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 from 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.
Switeck wrote:
Shouldn't ramming/nudging asteroids impart a speed on them as well?
It does, but they’re rather heavy. It’s more noticeable if you nudge some debris.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: What is your maximum speed

Post by Thargoid »

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.
Post Reply