IChiselable
An interface in Root.Township, Alta.Carpentry.
Something a chisel can carve, such as a timber piece. ChiselingTool checks it on hit and sends it the damage.
- Listed in Crafting and making
- Derived types
Chiselable,BasicChiselable
Properties
| Member | What it is |
|---|---|
bool IsEnabled { get; } | False when the target cannot be chiselled right now. The chisel skips it. |
Methods
| Member | What it is |
|---|---|
void GetDirectionLeniency(ref float directionMultiplier) | Lets the target change how strict the hit direction check is, by adjusting the multiplier passed in. |
float GetHitMultiplier(Vector3 hitDirection) | How well a hit from this direction lines up, raised to a power by the chisel to scale damage. |
void ReceiveDamage(float damage, Vector3 position, Vector3 direction, ChiselingTool tool, Collider hitCollider) | Applies chisel damage at a point and direction, with the tool and the collider that was hit. |
Used in
Members of other types that take, return or hold a IChiselable: