Skip to content

Basic reference frames #17

@djungelorm

Description

@djungelorm

Add basic reference frames. This is a complex one, and is depended on by a lot of other functionality. Instances of this class don't expose any RPCs to the client, but they do have an "internal api" that is used by other parts of space center (e.g. getting the position, or rotation of the frame relative to world space).

See https://github.com/krpc/krpc/blob/main/service/SpaceCenter/src/Services/ReferenceFrame.cs

To start just add these three main ones:

  • ReferenceFrameType.Vessel
  • ReferenceFrameType.VesselOrbital
  • ReferenceFrameType.VesselSurface

With the following methods/properties:

  • Transform
  • Position
  • Rotation
  • Up
  • Forward
  • UpNotNormalized
  • ForwardNotNormalized
  • Velocity
  • PositionFromWorldSpace
  • PositionToWorldSpace
  • DirectionFromWorldSpace
  • DirectionToWorldSpace
  • RotationFromWorldSpace
  • RotationToWorldSpace
  • VelocityFromWorldSpace
  • VelocityToWorldSpace

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions