CornellTech-Unity-project  1.0
Public Member Functions | Public Attributes | List of all members
Cyan.Open Class Reference

Attached to anything that can open. More...

Inherits MonoBehaviour.

Public Member Functions

void slideOut (float mouseInput)
 Translates door based on mouseinput from vertical axis (x axis) Clamps the door from pulling past its original location and the slide max More...
 
void slideOutZ (float mouseInput)
 Translates drawer based on mouseinput from vertical axis on the z axis Clamps the door from pulling past its original location and the slide max More...
 
void swingOut (float mouseInput)
 Rotates door by right/left hinge (y axis) Clamps door from swinging past original location and hingemax More...
 
void swingDown (float mouseInput)
 Rotates door on its bottom hinge (z axis) Clamps door from swinging past original location and hinge max More...
 
void toiletSeat (float mouseInput)
 Rotates toilet seat cover z axis Clamps from exceeding 95 degrees and below 0 More...
 
void ActivateDrawer ()
 

Public Attributes

HingeType hType
 
bool isClosed = true
 

Detailed Description

Attached to anything that can open.

Drawers/cabinets are clamped to not over close/open

Member Function Documentation

void Cyan.Open.ActivateDrawer ( )
void Cyan.Open.slideOut ( float  mouseInput)

Translates door based on mouseinput from vertical axis (x axis) Clamps the door from pulling past its original location and the slide max

Parameters
mouseInputvertical axis mouse input
void Cyan.Open.slideOutZ ( float  mouseInput)

Translates drawer based on mouseinput from vertical axis on the z axis Clamps the door from pulling past its original location and the slide max

Parameters
mouseInputvertical axis mouse input
void Cyan.Open.swingDown ( float  mouseInput)

Rotates door on its bottom hinge (z axis) Clamps door from swinging past original location and hinge max

Parameters
mouseInputvertical mouse input
void Cyan.Open.swingOut ( float  mouseInput)

Rotates door by right/left hinge (y axis) Clamps door from swinging past original location and hingemax

Parameters
mouseInputhorizontal mouse input
void Cyan.Open.toiletSeat ( float  mouseInput)

Rotates toilet seat cover z axis Clamps from exceeding 95 degrees and below 0

Parameters
mouseInputvertical mouse input

Member Data Documentation

HingeType Cyan.Open.hType
bool Cyan.Open.isClosed = true

The documentation for this class was generated from the following file: