C# Class TouchScript.Gestures.TransformGesture

Inheritance: TouchScript.Gestures.Base.TransformGestureBase, ITransformGesture
Afficher le fichier Open project: DRMold/HungryHungryTetris Class Usage Examples

Méthodes publiques

Méthode Description
ApplyTransform ( Transform target ) : void

Méthodes protégées

Méthode Description
Awake ( ) : void
OnEnable ( ) : void
clearDebug ( ) : void
doOnePointTranslation ( Vector2 oldScreenPos, Vector2 newScreenPos, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
doRotation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float
doScaling ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float
doTwoPointTranslation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, float dR, float dS, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
drawDebug ( int touchPoints ) : void
projectScaledRotated ( Vector2 point, float dR, float dS, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
touchesBegan ( IList touches ) : void

Private Methods

Méthode Description
updateProjectionPlane ( ) : void

Updates projection plane based on options set.

Method Details

ApplyTransform() public méthode

public ApplyTransform ( Transform target ) : void
target UnityEngine.Transform
Résultat void

Awake() protected méthode

protected Awake ( ) : void
Résultat void

OnEnable() protected méthode

protected OnEnable ( ) : void
Résultat void

clearDebug() protected méthode

protected clearDebug ( ) : void
Résultat void

doOnePointTranslation() protected méthode

protected doOnePointTranslation ( Vector2 oldScreenPos, Vector2 newScreenPos, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
oldScreenPos UnityEngine.Vector2
newScreenPos UnityEngine.Vector2
projectionParams TouchScript.Layers.ProjectionParams
Résultat UnityEngine.Vector3

doRotation() protected méthode

protected doRotation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float
oldScreenPos1 UnityEngine.Vector2
oldScreenPos2 UnityEngine.Vector2
newScreenPos1 UnityEngine.Vector2
newScreenPos2 UnityEngine.Vector2
projectionParams TouchScript.Layers.ProjectionParams
Résultat float

doScaling() protected méthode

protected doScaling ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float
oldScreenPos1 UnityEngine.Vector2
oldScreenPos2 UnityEngine.Vector2
newScreenPos1 UnityEngine.Vector2
newScreenPos2 UnityEngine.Vector2
projectionParams TouchScript.Layers.ProjectionParams
Résultat float

doTwoPointTranslation() protected méthode

protected doTwoPointTranslation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, float dR, float dS, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
oldScreenPos1 UnityEngine.Vector2
oldScreenPos2 UnityEngine.Vector2
newScreenPos1 UnityEngine.Vector2
newScreenPos2 UnityEngine.Vector2
dR float
dS float
projectionParams TouchScript.Layers.ProjectionParams
Résultat UnityEngine.Vector3

drawDebug() protected méthode

protected drawDebug ( int touchPoints ) : void
touchPoints int
Résultat void

projectScaledRotated() protected méthode

protected projectScaledRotated ( Vector2 point, float dR, float dS, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
point UnityEngine.Vector2
dR float
dS float
projectionParams TouchScript.Layers.ProjectionParams
Résultat UnityEngine.Vector3

touchesBegan() protected méthode

protected touchesBegan ( IList touches ) : void
touches IList
Résultat void