Cornell Tech-Unity-project  1.0
Public Member Functions | Public Attributes | List of all members
Open Class Reference

Attached to anything that can open. Drawers/cabinets are clamped to not over close/open More...

Inheritance diagram for Open:

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 ()
 
void AutoSlideOut (float speedDirection)
 

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 Open.ActivateDrawer ( )
void Open.AutoSlideOut ( float  speedDirection)
void 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 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 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 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 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 Open.hType
bool Open.isClosed = true

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