space_ex v0.8.0 SpaceEx.SpaceCenter.Force

Obtained by calling SpaceEx.SpaceCenter.Part.add_force/4.

Link to this section Summary

Functions

The force vector, in Newtons

The part that this force is applied to

The position at which the force acts, in reference frame SpaceEx.SpaceCenter.ReferenceFrame

The reference frame of the force vector and position

Remove the force

The force vector, in Newtons

The position at which the force acts, in reference frame SpaceEx.SpaceCenter.ReferenceFrame

The reference frame of the force vector and position

Link to this section Functions

Link to this function force_vector(this)

The force vector, in Newtons.

Returns a vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons.

Returns: {double, double, double}, where double is a high precision decimal

The part that this force is applied to.

Returns: a reference to a SpaceEx.SpaceCenter.Part object

The position at which the force acts, in reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Returns the position as a vector.

Returns: {double, double, double}, where double is a high precision decimal

Link to this function reference_frame(this)

The reference frame of the force vector and position.

Returns: a reference to a SpaceEx.SpaceCenter.ReferenceFrame object

Remove the force.

Returns: :ok

Link to this function set_force_vector(this, value)

The force vector, in Newtons.

Returns a vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons.

Returns: :ok

Link to this function set_position(this, value)

The position at which the force acts, in reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Returns the position as a vector.

Returns: :ok

Link to this function set_reference_frame(this, value)

The reference frame of the force vector and position.

Returns: :ok