BaseCollider
< Modding | ComponentsModding/Components/BaseCollider
Jump to navigation
Jump to search
Work in Progress
This page is currently WORK IN PROGRESS. Some things may be missing.
Feel free to contribute and don't worry about perfection - other editors can make corrections if necessary. Just get creating!
Code locations (what's this?):
• Cosmoteer.Ships.Parts.Colliders.BaseCollider
• Cosmoteer.Ships.Parts.Colliders.BaseColliderRules
Base class for part sub-components that creates a custom physics collider for the part.
Inherits from OperationalChainablePartComponent.
This is an abstract class, made to share functionality. Use one of its inheritors instead of itself.
Inheritors :
- CircleCollider
- PolygonCollider
Name | Type | Required? | Buffable? | Default value | Description |
---|---|---|---|---|---|
Density | float? | - | - | (see description) | How much the equivalent of 1 tile of this collider (in surface) weighs.
If this is not set, the Density field of the part holding this component will be used by default. |
IsHigh | bool | - | - | - | Presumably, whether or not this behaves like deck-mounted elements, blocking "high" projectiles and maybe the construction of Deck Cannons. |
DamageResistances | (see description) | - | Yes | - | Type: Dictionary<Cosmoteer.Data.ID<DamageType>, Range<BuffableFloat>>?
The "list" of resistances to various types of damage for this element. |
InitialPenetrationResistance | Range<Float>? | - | Yes | - | Presumably, how much penetration resistance this collider has against projectiles that aren't already penetrating a neighbouring part of the same ship. |
Notes
Nothing yet.
Examples
Nothing yet.