Struct SceneClimbable
One ladder, rope ladder or rope a character can climb, baked by the cut (a cave's shafts and ledges, a mine's levels): the climbing movement mode, the server's NavMesh links and the NPCs' traversal of them all read these, nothing else. The pieces drawn for it are baked props, data like this, so nothing here refers to them.
[Serializable]
public struct SceneClimbable
- Inherited Members
Remarks
The climb is the segment Bottom to Top, its centre line. A climber's feet hang Out of it by the body's radius and a little more, and are kept on that line's height: it may lean (a ladder against a ledge, up to about 15 degrees) but never far from upright.
Identified at run time by its index in Climbables within the character's own scene: the server and every client load the same asset, so the index is the same on both and is what the reconcile carries.
Fields
Bottom
World metres: where the climb's foot stands on the lower floor, on its centre line.
public Vector3 Bottom
Field Value
- Vector3
HalfWidth
Half the width it can be held across, metres: a ladder about 0.3, a rope about 0.1.
public float HalfWidth
Field Value
Kind
public SceneClimbableKind Kind
Field Value
Out
Horizontal unit vector from the wall (or the ladder) toward where the climber hangs: the climber faces −Out. Zero for a free-hanging rope, which is held from the side the climber came at.
public Vector3 Out
Field Value
- Vector3
Top
World metres: the top of the climb, level with the upper floor a climber steps off onto.
public Vector3 Top
Field Value
- Vector3
TopExit
Horizontal unit vector: the way a climber steps off at the top onto the upper floor. For a ladder against a ledge or a shaft's wall it is −Out.
public Vector3 TopExit
Field Value
- Vector3