|
|
|
[< Back to mechanic page](/Skills/Mechanics)
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Configure the segment or tail bones.
|
|
|
|
|
|
|
|
## Attributes
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Type | Default |
|
|
|
|
|------------|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|---------|
|
|
|
|
| modelid | m, mid, model | Targeted model | String | |
|
|
|
|
| partid | p, pid, part | Targeted segment bone.<br/>If not set, configures the entire model. | String | |
|
|
|
|
| bounded | b, bd | Is the segment bone bounded by any rotational restrictions. <br/>`true` by default.<br/>If not set, use the last value | Boolean | |
|
|
|
|
| rolllock | r, rl, roll | Should the segment bone mimic the roll of the parent bone. When `true`, if the parent bond twists, the child bone would twists together. <br/>`false` by default.<br/>If not set, use the last value | Boolean | |
|
|
|
|
| anglelimit | a, al, angle | The maximum angle in degrees the segment bone can deviate from the parent bone. <br/>`50` by default.<br/>If not set, use the last value | Float | |
|
|
|
|
| extendrate | e, er, extend | The extend, or straightening rate of the segment bone, where the bone would slowly align to the parent bone. <br/>`0` means no straightening at all. <br/>`0.01` by default.<br/>If not set, use the last value | Float | |
|
|
|
|
| exactmatch | em, exact, match | Should the part match the `partid` completely | Boolean | true |
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
This would spawn a model with a tail that is very springy, meaning it can wiggle around.
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
|
|
- model{m=rat} @self ~onSpawn
|
|
|
|
- segment{m=rat;p=tail;roll=true;extend=0.25} @self ~onSpawn
|
|
|
|
```
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
|
|
|
|
- [x] seg |
|
|
|
\ No newline at end of file |