When the third person character is aiming with an object directly in front of them there’s a chance that the weapon will clip the object.
The Item Pullback ability solves this by preventing the aim and use abilities from activating when an object would clip the weapon. The ability detects when the item would overlap by placing a Capsule Collider in front of the player and doing a cast to determine if anything overlaps with it.
- Select the + button in the ability list under the “Item Abilities” foldout of the Ultimate Character Locomotion component.
- Add the Third Person Item Pullback item ability.
- The ability will automatically add an Item Pullback Collider. This collider is located under the “Character/Colliders” GameObject and should be positioned to be in the area that the character should pull back the item in.
The collider used to detect when the character is near an object and should pull back the items.
The layers that the collider can collide with.
Max Collision Count
The maximum number of collisions that should be detected by the collider.