using UnityEngine; namespace ECE { /// /// Properties to use when creating a collider. /// public struct EasyColliderProperties { /// /// Marks the collider's isTrigger property /// public bool IsTrigger; /// /// Layer of gameobject when creating a rotated collider. /// public int Layer; /// /// Physic material to set on collider. /// public PhysicMaterial PhysicMaterial; /// /// Orientation of created collider. /// public COLLIDER_ORIENTATION Orientation; /// /// Gameobject collider gets added to. /// public GameObject AttachTo; /// /// Properties with which to create a collider /// /// Should the collider's isTrigger property be true? /// Layer of gameobject when creating a rotated collider /// Physic Material to apply to a collider /// GameObject to attach the collider to /// Orientation of the collider for generation public EasyColliderProperties(bool isTrigger, int layer, PhysicMaterial physicMaterial, GameObject attachTo, COLLIDER_ORIENTATION orientation = COLLIDER_ORIENTATION.NORMAL) { IsTrigger = isTrigger; Layer = layer; PhysicMaterial = physicMaterial; AttachTo = attachTo; Orientation = orientation; } } }