Class DefaultBehavior
Hierarchy
- DefaultBehavior
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Instantiates the default behavior
Returns DefaultBehavior
Properties
attached NodeSearch playground for attachedNode
Attached node of this behavior
follow Behavior EnabledSearch playground for followBehaviorEnabled
Enables the follow behavior
six Dof Drag Behavior EnabledSearch playground for sixDofDragBehaviorEnabled
Enables the six DoF drag behavior
surface Magnetism Behavior EnabledSearch playground for surfaceMagnetismBehaviorEnabled
Enables the surface magnetism behavior
Accessors
follow Behavior
-
The follow behavior
Returns FollowBehavior
name
-
The name of the behavior
Returns string
six Dof Drag Behavior
-
The six DoF drag behavior
Returns SixDofDragBehavior
surface Magnetism Behavior
-
The surface magnetism behavior
Returns SurfaceMagnetismBehavior
Methods
attachSearch playground for attach
-
Attaches the default behavior
Parameters
-
ownerMesh: Mesh
The top level mesh
-
Optional draggablesMeshes: Mesh[]
Descendant meshes that can be used for dragging the owner mesh
-
Optional sceneUnderstandingMeshes: AbstractMesh[]
Meshes from the scene understanding that will be used for surface magnetism
Returns void
-
detachSearch playground for detach
-
Detaches the behavior from the mesh
Returns void
initSearch playground for init
-
Initializes the behavior
Returns void
Default behavior for 3D UI elements. Handles a BABYLON.FollowBehavior, SixDofBehavior and BABYLON.SurfaceMagnetismBehavior
5.0.0