-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Milestone
Description
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