---
url: /dyad/stable/stdlib/MultibodyComponents/examples/examples.BodyShapePend.md
description: >-
  Dyad examples.BodyShapePend docs. 
  MultibodyComponents.examples.BodyShapePend()
---

# `examples.BodyShapePend` {#examples.BodyShapePend}

## Usage {#Usage}

`MultibodyComponents.examples.BodyShapePend()`

## Behavior {#Behavior}

## Source {#Source}

```dyad
example component BodyShapePend
  world = MultibodyComponents.World() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 310, "y1": 450, "x2": 410, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  joint = MultibodyComponents.Revolute(phi(initial = pi / 3), w(initial = 0)) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 450, "x2": 550, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  body = MultibodyComponents.BodyShape(r = [1, 0, 0], r_cm = [0.5, 0, 0], m = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 580, "y1": 450, "x2": 680, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
relations
  connect(world.frame_b, joint.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(joint.frame_b, body.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
end
```

```dyad
example component BodyShapePend
  world = MultibodyComponents.World() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 310, "y1": 450, "x2": 410, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  joint = MultibodyComponents.Revolute(phi(initial = pi / 3), w(initial = 0)) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 450, "x2": 550, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  body = MultibodyComponents.BodyShape(r = [1, 0, 0], r_cm = [0.5, 0, 0], m = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 580, "y1": 450, "x2": 680, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
relations
  connect(world.frame_b, joint.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(joint.frame_b, body.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
metadata {}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
