class ObjectSnapCallbackSource
EntityPlacementCallback › ObjectSnapCallback
Members 8
Object m_OwnerThe owner performing the snap callback
vector m_OwnerPositionThe position of the owner in world space
vector m_OwnerDirectionThe direction of the owner in world space
vector m_OffsetThe true center of the bounding box of the object to be dropped in model space
vector m_ExtentsThe size of the boundig box, centered
vector m_DirectionFuncHow much should the direction be favoured.
vector m_Transform[4]The transformation currently being debugged
Methods 5
void OnSetup()Initialization of script variables
Debug callback for rendering on the screen
Called for first layer contacts to determine if this object should be snapped around or default rv raycast placement is fine
Returns: True if bounding snap is to be used
Initial query around the owner position to see if an object should be processed in contact testing
Returns: True if the object should be counted