space_ex v0.1.0 SpaceEx.SpaceCenter.DockingPort
A docking port.
Obtained by calling SpaceEx.SpaceCenter.Part.get_docking_port/2
Link to this section Summary
Functions
The direction that docking port points in, in the given reference frame
The part that this docking port is docked to
Whether the docking port has a shield
The part object for this docking port
The distance a docking port must move away when it undocks before it becomes ready to dock with another port, in meters
The reference frame that is fixed relative to this docking port, and oriented with the port
The state of the docking ports shield, if it has one
The current state of the docking port
The position of the docking port, in the given reference frame
The rotation of the docking port, in the given reference frame
The state of the docking ports shield, if it has one
Undocks the docking port and returns the new SpaceEx.SpaceCenter.Vessel
that is created
Link to this section Functions
The direction that docking port points in, in the given reference frame.
Returns: The direction as a unit vector.
referenceFrame
— The reference frame that the returned direction is in.
The part that this docking port is docked to.
Returns nil
if this
docking port is not docked to anything.
Whether the docking port has a shield.
The part object for this docking port.
The distance a docking port must move away when it undocks before it becomes ready to dock with another port, in meters.
The reference frame that is fixed relative to this docking port, and oriented with the port.
The origin is at the position of the docking port.
The axes rotate with the docking port.
The x-axis points out to the right side of the docking port.
The y-axis points in the direction the docking port is facing.
The z-axis points out of the bottom off the docking port.
This reference frame is not necessarily equivalent to the reference frame
for the part, returned by SpaceEx.SpaceCenter.Part.get_reference_frame/2
.
The state of the docking ports shield, if it has one.
Returns true
if the docking port has a shield, and the shield is
closed. Otherwise returns false
. When set to true
, the shield is
closed, and when set to false
the shield is opened. If the docking
port does not have a shield, setting this attribute has no effect.
The current state of the docking port.
The position of the docking port, in the given reference frame.
Returns: The position as a vector.
referenceFrame
— The reference frame that the returned position vector is in.
The rotation of the docking port, in the given reference frame.
Returns: The rotation as a quaternion of the form \((x, y, z, w)\).
referenceFrame
— The reference frame that the returned rotation is in.
The state of the docking ports shield, if it has one.
Returns true
if the docking port has a shield, and the shield is
closed. Otherwise returns false
. When set to true
, the shield is
closed, and when set to false
the shield is opened. If the docking
port does not have a shield, setting this attribute has no effect.
Undocks the docking port and returns the new SpaceEx.SpaceCenter.Vessel
that is created.
This method can be called for either docking port in a docked pair. Throws an exception if the docking port is not docked to anything.
When called, the active vessel may change. It is therefore possible that,
after calling this function, the object(s) returned by previous call(s) to
SpaceEx.SpaceCenter.get_active_vessel/1
no longer refer to the active vessel.