パブリック クラス
TranslationController
DragGestureRecognizer
を使用して BaseTransformableNode
の位置を操作する。指定しない場合、DragGesture
の起動時に BaseTransformableNode
が選択されます。
パブリック コンストラクタ
TranslationController(BaseTransformableNode transformableNode、DragGestureRecognizer gestureRecognizer)
|
パブリック メソッド
ブール値 |
canStartTransformation(DragGesture ジェスチャー)
|
EnumSet<Plane.Type> |
getAllowedPlaneTypes()
この TranslationController の変換を許可する ArCore プレーンのタイプを決定する EnumSet への参照を取得します。
|
ブール値 | |
void | |
void |
onEndTransformation(DragGesture ジェスチャー)
|
void | |
void |
setAllowedPlaneTypes(EnumSet<Plane.Type> allowedPlaneTypes)
この TranslationController で変換を許可する ArCore プレーンの種類を設定します。
|
継承されるメソッド
パブリック コンストラクタ
public TranslationController (BaseTransformableNode transformableNode、DragGestureRecognizer gestureRecognizer)
パラメータ
transformableNode | |
---|---|
ジェスチャー認識機能(# など適宜文脈に応じて) |
パブリック メソッド
public EnumSet<Plane.Type> getAllowedPlaneTypes ()
この TranslationController の変換を許可する ArCore プレーンのタイプを決定する EnumSet への参照を取得します。
public boolean isTransforming ()
public void onUpdated (ノードノード、FrameTime frameTime)
onUpdate(FrameTime)
が呼び出されたことをリスナーに通知します。
パラメータ
ノード | 更新されたノード |
---|---|
フレーム時間 | 現在のフレームの時間情報を提供します。 |
public void setAllowedPlaneTypes (EnumSet<Plane.Type> allowedPlaneTypes)
この TranslationController で変換を許可する ArCore プレーンの種類を設定します。
パラメータ
allowedPlaneTypes |
---|