Vectors

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

How are vectors made in Transcendence?
Say I want to make a space object a certain velocity or put it a certain position in the system how would I do that?

Also what is the origin of position vectors?
Crying is not a proper retort!
Desolator
Commonwealth Pilot
Commonwealth Pilot
Posts: 73
Joined: Tue Dec 18, 2007 6:31 pm
Location: Romania

Good question, George is the only one who knows this, I believe.
george moromisato
Developer
Developer
Posts: 2997
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

The position vector for an object determines the position of the object relative to the center of the system. The center of the system is usually the position of the central star (in binary systems it is the position of the larger star).

Start with (sysVectorPolarOffset). This function creates a position vector using polar coordinates offset from some point.

(sysVectorPolarOffset center angle radius) Returns the position vector that is {radius} light-seconds away from {center} in the direction of {angle}.

The {center} can be:

Nil: The center of the system (0,0)
A vector
An object (e.g., gPlayerShip)

Examples:

(sysVectorPolarOffset Nil 0 0) returns the center of the system

(sysVectorPolarOffset Nil 90 60) returns a point 60 light-seconds straight up (90 degrees) from the center of the system.

(sysVectorPolarOffset gPlayerShip 0 10) returns a point 10 light-seconds to the right of the player ship.

Use (objMoveTo) to move an object to a particular position.
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

now the only real puzzle is how to stop a space object :D
Crying is not a proper retort!
Kamikaze
Commonwealth Pilot
Commonwealth Pilot
Posts: 78
Joined: Mon Apr 23, 2007 4:41 am
Location: Canton, MI/Redford, MI (Home/School)

Soo...

How would we go about creating an item at a given vector...?
I never said I was sane.

I said I was perfectly insane.
Post Reply