Wiki

Case Status
Log In

Wiki

 
Home ยป Action Reference»Character Actions»Controller Crouch
Index
Navigation
Community Wiki

Controller Crouch

Makes a CharacterController Crouch. Handles scaling the collider and transitions between standing and crouching.

Game Object
The GameObject that owns the CharacterController component.
Is Crouching
Crouch while this to true. Normally set by an Input action like Get Key. NOTE: The controller might not be able to stand up when this is false if there's not enough headroom.
Crouch Height
Height of capsule when crouching.
Adjust Children
Move children so their height scales with capsule. This is useful for weapon attach points etc.
Transition Time
How long it takes to crouch/stand in seconds.
Complete Transition
Always complete the full transition to crouching, even if the input is brief.
Can Stand
Can the CharacterController stand if isCrouching is false (e.g. if the crouch button is released). Usually set by a some kind of raycast checking the headroom above the controller,but could also be set to false to prevent standing for other reasons, e.g., crouch because the ground is shaking.
Stand Toggle
Try to stand if true. Useful if want to toggle crouch with a button.
Stand Event
Event to send when crouch button is released AND there is enough headroom.
Reset Height On Exit
Reset the controller height if the State exits before crouch has finished. Also restores children to original offsets if Adjust Children was used. NOTE: You probably want to keep this checked most of the time.
Tags:

Last modified on 8/24/2021 4:03 PM by User.

  • RSS Feed