パブリック クラス
ScaleController
ピンチ PinchGestureRecognizer
を使用して BaseTransformableNode
のスケールを操作する。最小 / 最大スケールを超えて BaseTransformableNode
をスケーリングするときに、調整可能な弾力性のあるバウンスバックを適用します。
定数
float | DEFAULT_ELASTI 市区町村 | |
float | DEFAULT_MAX_SCALE | |
float | DEFAULT_MIN_SCALE | |
float | DEFAULT_SENSITIVITY |
パブリック コンストラクタ
パブリック メソッド
ブール値 |
canStartTransformation(PitchGesture ジェスチャー)
|
浮動小数点数 | |
浮動小数点数 | |
浮動小数点数 | |
浮動小数点数 | |
void | |
void |
onContinueTransformation(PinkGesture ジェスチャー)
|
void |
onEndTransformation(PinkGesture ジェスチャー)
|
void | |
void |
setElasticity(浮動小数点弾力性)
|
void |
setMaxScale(float maxScale)
|
void |
setMinScale(float minScale)
|
void |
setSensitivity(浮動小数点感度)
|
継承されるメソッド
定数
public static final float DEFAULT_ELASTIcity
定数値:
0.15
public static final float DEFAULT_MAX_SCALE
定数値:
1.75
public static final float DEFAULT_MIN_SCALE
定数値:
0.75
public static final float DEFAULT_SENSITIVITY
定数値:
0.75
パブリック コンストラクタ
public ScaleController (BaseTransformableNode transformableNode、PinkGestureRecognizer gestureRecognizer)
パラメータ
transformableNode | |
---|---|
ジェスチャー認識機能(# など適宜文脈に応じて) |
パブリック メソッド
public float getElasticity ()
public float getMaxScale ()
public float getMinScale ()
public float getSensitivity ()
public void onUpdated (ノードノード、FrameTime frameTime)
onUpdate(FrameTime)
が呼び出されたことをリスナーに通知します。
パラメータ
ノード | 更新されたノード |
---|---|
フレーム時間 | 現在のフレームの時間情報を提供します。 |
public void setElasticity (浮動小数点弾力性)
パラメータ
弾力性 |
---|
public void setMaxScale (浮動小数点数 maxScale)
パラメータ
maxScale |
---|
public void setMinScale (浮動小数点 minScale)
パラメータ
minScale |
---|
public void setSensitivity (浮動小数点感度)
パラメータ
感応度 |
---|