/
index.md
73 lines (51 loc) · 1.67 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
(bm-config)=
# Configuring the Body Model
The body model can be configured in multiple ways. This include what limb
segments are include, the type of muscles, scaling etc.
All these choises are controlled through a number of switches called Body Model
(BM) parameters. BM parameters are always prefixed with `BM_` and written in
uppercase.
## Simple example
The example below configures a model with no arms and enables the 3-element Hill
muscles model on the legs.
:::{note}
:class: margin
Some parameters have simple {ammr:bm_constant}`ON`/{ammr:bm_constant}`OFF`
options, while others have more options.
:::
```{code-block} AnyScriptDoc
:emphasize-lines: 1-3
#define BM_ARM_LEFT OFF
#define BM_ARM_RIGHT OFF
#define BM_LEG_MUSCLES_BOTH _MUSCLES_3E_HILL_
// Now include the HumanModel
#include "<ANYBODY_PATH_BODY>\HumanModel.any"
```
The next section shows an overview of what BM statements are available for the different body parts.
## BM parameters
:::{tip}
:class: margin
Most models can also be configured using the
{doc}`BM plugin </bm_config/bm_plugin>`.
:::
There are body model parameters for configuring each body part, controlling scaling, controlling the default
mannequin drivers (click to see tutorial on {ref}`modelling from scratch <MannequinDriver>`), as well as other global options for the model.
See the following links for details on BM parameters related to different body parts and modelling options:
```{toctree}
:maxdepth: 1
leg
arm
trunk
mannequin
scaling
joint_type
other
bm_plugin
```
## All Parameters and constants
The full list of all the parameter and their options is available in the links below:
```{toctree}
:maxdepth: 1
bm_statements
bm_constants
```