A behavior that allows a transform node to stick to a surface position/orientation
Is this behavior reacting to pointer events
Normal OffsetSearch playground for hitNormalOffset
Distance offset from the hit point to place the target at, along the hit normal.
PoseSearch playground for interpolatePose
Set to false if the node should strictly follow the camera without any interpolation time
Orientation VerticalSearch playground for keepOrientationVertical
If true, pitch and roll are omitted.
TimeSearch playground for lerpTime
Rate of interpolation of position and rotation of the attached node. Higher values will give a slower interpolation.
Sticking DistanceSearch playground for maxStickingDistance
Maximum distance for the node to stick to the surface
Spatial mapping meshes to collide with
Name of the behavior
Detaches the behavior
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
lerpTimeproperties. If no mesh of
meshesare hit, this does nothing.
The input pickingInfo that will be used to intersect the meshes
a boolean indicating if we found a hit to stick to
Function called when the behavior needs to be initialized (after attaching it to a target)
Attach PointSearch playground for updateAttachPoint
Updates the attach point with the current geometry extents of the attached mesh