The Ultimate Character Controller is integrated with RayFire allowing your weapons to damage a RayFireRigid or RayfireShatter object. This integration can be downloaded from one of the pages listed below.
- Download and import the RayFire integration from the Downloads page.
- Setup your RayFire object according to the RayFire documentation.
- Add the RayFireImpact component to the GameObject that contains the colliders used by the RayFire component. In most cases this will be on the same GameObject that the RayFireRigid or RayFireShatter component exists. If the object has already been fragmented and the parent GameObject does not contain a collider then each child collider should have the RayFireImpact component added.
- The object will automatically be shattered when the OnObjectImpact event is called on the RayFireImpact component.
The damage multiplayer that should be applied to the RayfireRigid object.