SnapDropZone
Allows you to define an object that will snap to a specific location and/or rotation if dropped in the collider
important to set the collider to trigger
Inspector
DropZone Components:
Objects to get: The object that the zone will target to “snap”
Must have tag: if left empty, no tag is required
Detection Time: How long object needs to be in the collider to “snap”
Detect Hold Objects: if this is set to true, the object the player is holding will be forced to snap to this location (and dropped from the players hand)
Object Detected: Called when an object is detected
Object removed: Called when an object is removed from the zone
SnapZone Components:
Locks Object: Stops the object from being grabbed after dropped
Use Paranting: Sets this object as the parent if object is dropped in the location
Snap Point: The location to “snap” the object to
Snap To Position: If it should move to the snap point position
snap to rotation: if the object should “rotate” to the snap point rotation
Snap Smoothing: changes how the object snaps into position
Object Snapped: Called when the object “snaps” in to position