TimberPiece.RotationModel
A class in Root.Township, Alta.Carpentry.
Works out how a TimberPiece tips over as it is chiselled: the axis it rotates around and how far the pivot edge is from its centre.
- Listed in Crafting and making
- Nested in
TimberPiece
Constructors
| Member | What it is |
|---|---|
RotationModel(Vector3 pivottingDirection, Vector3 size, bool inversedUp) | Creates a TimberPiece.RotationModel from pivottingDirection, size and inversedUp. |
Fields
4 private and internal fields
Properties
Methods
| Member | What it is |
|---|---|
void Update(Vector3 newDirection) | Recalculates Distance and RotationAxis for a new pivot direction. |
Used in
Members of other types that take, return or hold a RotationModel: