Class SitRules
What can be sat on: a level top seat-high over the feet, deep enough to sit on. The World Sim walker sits by it (the game has no sitting yet).
public static class SitRules
- Inheritance
-
SitRules
- Inherited Members
Fields
Depth
How deep a seat must be to sit on, metres back from its front edge.
public const float Depth = 0.2
Field Value
LevelTolerance
How far the top may differ across that depth, metres: a seat is level, a slope is not.
public const float LevelTolerance = 0.06
Field Value
MaxSeatHeight
The highest seat: a stool, not a table (the tables are 0.72 and up).
public const float MaxSeatHeight = 0.65
Field Value
MinNormalUp
How level a top must be to sit on (its normal's up component).
public const float MinNormalUp = 0.85
Field Value
MinSeatHeight
The lowest seat sat on rather than the ground, metres over the feet (a bench is 0.485).
public const float MinSeatHeight = 0.38
Field Value
Reach
How far round a sitter a seat's front edge is looked for, metres.
public const float Reach = 0.8
Field Value
Methods
IsSeat(float, float, float)
True when a top front metres over the feet at its edge, back metres over
them Depth further in, with a surface whose normal points normalUp up, is a seat.
public static bool IsSeat(float front, float back, float normalUp)