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.
Ultimate Character Controller
First Person Controller
Third Person Controller
UFPS: Ultimate First Person Shooter
UTPS: Ultimate Third Person Shooter
UFPM: Ultimate First Person Melee
UFPM: Ultimate Third Person Melee
- Install the integration from above.
- 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.