PushPull Script

The PushPull script represents a state that allows a character to push and pull objects within the game environment. It provides functionality for detecting push/pull objects, handling movement, rotat

Detection Settings

detectionTag: Unity tag used to identify push/pull objects.

pushPullObjectTag: Malbers tag used to identify push/pull objects.

detectionRadius: Radius for detecting push/pull objects.

raycastPosition: Position offset for the raycast used for detection.

rayLength: Length of the raycast used for detection.

alignRotationSpeed: Speed of rotation when aligning to push/pull objects.

alignRotationDuration: Duration for character align rotation.

Movement Settings

pushPullMoveSpeed: Movement speed of the character and the push/pull object.

pushPullRotationSpeed: Rotation speed of the character and the push/pull object.

enableRotateMode: Set a string value from an input that you would like to use to enable the rotation mode on the push-pull object.

Last updated