RoR2-ChensGradiusMod

Gradius Mod in Risk of Rain 2.

View on GitHub

ChensGradiusMod

Chen.GradiusMod.Extensions

Extensions.InitializeDroneModelComponents(GameObject, CharacterBody, float) Method

Shortcut for initializing a custom drone model. Only applies when work flow is followed the same as this mod’s drones.

public static void InitializeDroneModelComponents(this GameObject droneModel, CharacterBody droneBody, float colliderMultiplier);

Parameters

droneModel UnityEngine.GameObject
The custom drone model to initialize.

droneBody RoR2.CharacterBody
The associated body of the model.

colliderMultiplier System.Single
Collider size multiplier to be applied to the collider in the CharacterBody object.
The basis would be the collider found within the model. A small collider may result in clipping through the map.