TranslationController

公開類別 TranslationController

使用 DragGestureRecognizer 操控 BaseTransformableNode 的位置。如未選取,系統會在 DragGesture 啟動時選取 BaseTransformableNode

公用建構函式

公用方法

布林
EnumSet<Plane.Type>
getAllowedPlaneTypes()
取得 EnumSet 的參照,以決定這個 TranslationController 可以翻譯的 ArCore 平面類型。
布林
void
void
void
onUpdated(Node 節點、FrameTime frameTime)
通知事件監聽器已呼叫 onUpdate(FrameTime)
void
setAllowedPlaneTypes(EnumSet<Plane.Type> allowedPlaneTypes)
設定這個 TranslationController 可以翻譯的 ArCore 方案類型。

沿用的方法

公用建構函式

public TranslationController (BaseTransformableNodetransformableNode、DragGestureRecognizerGestureRecognizer)

參數
transformableNode
手勢辨識器

公用方法

public 布林值 canStartTransformation(DragGesture 手勢)

參數
手勢

public EnumSet<Plane.Type> getAllowedPlaneTypes ()

取得 EnumSet 的參照,以決定這個 TranslationController 可以翻譯的 ArCore 平面類型。

public 布林值 isTransforming ()

public onContinueTransformation (DragGesture 手勢)

參數
手勢

public onEndTransformation (DragGesture 手勢)

參數
手勢

public onUpdated (節點節點、FrameTime frameTime)

通知事件監聽器已呼叫 onUpdate(FrameTime)

參數
個節點 已更新的節點
frametime 提供目前畫格的時間資訊

public setAllowedPlaneTypes (EnumSet<Plane.Type> allowedPlaneTypes)

設定這個 TranslationController 可以翻譯的 ArCore 方案類型。

參數
allowedPlaneType