Table of Contents

Struct FloatingBoats.ShipPose

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Where a ship's hull stands at one moment: on its lane (y the water's level), its heading, and whether it is in the scene at all. Yaw only: the collider neither heels nor bobs. Its frame is the root's (waterline y 0, bow +x).

public struct FloatingBoats.ShipPose
Inherited Members

Fields

Position

public Vector3 Position

Field Value

Vector3

Shown

In the scene: false while it waits beyond the scene's edge, when it neither shows nor collides.

public bool Shown

Field Value

bool

UnderWay

Sailing (sail set) rather than lying at anchor.

public bool UnderWay

Field Value

bool

Yaw

Degrees about +y, as Quaternion.Euler(0, Yaw, 0).

public float Yaw

Field Value

float

Methods

ToLocal(Vector3)

A world point in the hull's frame.

public Vector3 ToLocal(Vector3 world)

Parameters

world Vector3

Returns

Vector3

ToWorld(Vector3)

A point in the hull's frame, in the world (Unity's yaw: +x turns towards −z).

public Vector3 ToWorld(Vector3 local)

Parameters

local Vector3

Returns

Vector3