Class SurfaceMagnetismBehavior
Hierarchy
- SurfaceMagnetismBehavior
Implements
Index
Properties
Accessors
Methods
Properties
enabledSearch playground for enabled
Is this behavior reacting to pointer events
hit Normal OffsetSearch playground for hitNormalOffset
Distance offset from the hit point to place the target at, along the hit normal.
interpolate PoseSearch playground for interpolatePose
Set to false if the node should strictly follow the camera without any interpolation time
keep Orientation VerticalSearch playground for keepOrientationVertical
If true, pitch and roll are omitted.
lerp TimeSearch playground for lerpTime
Rate of interpolation of position and rotation of the attached node. Higher values will give a slower interpolation.
max Sticking DistanceSearch playground for maxStickingDistance
Maximum distance for the node to stick to the surface
meshesSearch playground for meshes
Spatial mapping meshes to collide with
Accessors
name
-
Name of the behavior
Returns string
Methods
attachSearch playground for attach
detachSearch playground for detach
-
Detaches the behavior
Returns void
find And Update TargetSearch playground for findAndUpdateTarget
-
Finds the intersection point of the given ray onto the meshes and updates the target. Transformation will be interpolated according to
interpolatePose
andlerpTime
properties. If no mesh ofmeshes
are hit, this does nothing.Parameters
-
pickInfo: PickingInfo
The input pickingInfo that will be used to intersect the meshes
Returns boolean
a boolean indicating if we found a hit to stick to
-
initSearch playground for init
-
Function called when the behavior needs to be initialized (after attaching it to a target)
Returns void
update Attach PointSearch playground for updateAttachPoint
-
Updates the attach point with the current geometry extents of the attached mesh
Returns void
A behavior that allows a transform node to stick to a surface position/orientation
5.0.0