Inheritence

Constructors

BaseChair

Properties

ExitPoints
EyePosition A GameObject representing the eye position
IsOccupied Returns true if the chair is currently occupied
PitchRange Pitch range for seated players
SeatPosition A GameObject representing the seat position
SitHeight Height offset for sitting position, from -1 (lowest) to 1 (highest)
SitPose The sitting pose to use when a player is seated
YawRange Yaw range for seated players

Methods

AskToLeave Called on the host to request leaving the chair.
CalculateEyeTransform Calculates the eye transform for a seated player
CanEnter Return true if this player can enter the chair
CanLeave Return true if this player can leave the chair
CanPress Chair is usable if the player can enter
ClampEyes Clamps the eye angles of a seated player between the PitchRange and YawRange
DrawGizmos Draws the player model sitting in the chair if it's selected
Eject Called on the client to eject the player from the chair.
FindBestExitPoint Returns a position to place the player when they exit the chair. This searches through ExitPoints to find the best one, which is usually the one the player is most facing towards.
GetEyeTransform Get the transform representing the eye position when seated
GetOccupant Gets the player that is currently occupying the chair
Press Called when the player has pressed to use the chair. Only called if CanPress returned true.
Sit Called on the client to place the player in the chair.
UpdatePlayerAnimator Called to update the player's animator when seated
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.