PrecisePlaceZone

Derives from SnapDropZone

This works exactly like the SnapDropZone, however you are required to place the object a certain distance away from the target and also with a certain rotation

Inspector

DropZone variables: 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 variables: 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

PlaceZone variables:

Placement Reference: The point used as a reference for the zero point.

Match Position: Whether position has to match

Max Distance Allowed: The distance you are allowed to be away from the placement reference

Match Rotation: Whether rotation has to match

Rot Allowed: The maximum difference in rotation allowed compared to the placement reference

events: The events are called when the conditions are triggered.