---
url: /dyad/stable/stdlib/MultibodyComponents/tests/PlanarMechanics.PrescribedVelocityTest.md
description: >-
  Dyad PlanarMechanics.PrescribedVelocityTest docs.  A body whose frame_a is
  driven by a PrescribedVelocity component with constant velocity inputs. The
  body should move with constant velocity,...
---

# `PlanarMechanics.PrescribedVelocityTest` {#PlanarMechanics.PrescribedVelocityTest}

A body whose `frame_a` is driven by a `PrescribedVelocity` component with constant velocity inputs. The body should move with constant velocity, starting from `r_start`.

## Usage {#Usage}

`MultibodyComponents.PlanarMechanics.PrescribedVelocityTest()`

## Behavior {#Behavior}

## Source {#Source}

```dyad
"""
A body whose `frame_a` is driven by a `PrescribedVelocity` component with
constant velocity inputs. The body should move with constant velocity,
starting from `r_start`.
"""
test component PrescribedVelocityTest
  world = World() {}
  prescribed = PrescribedVelocity(r_start = [0, 0]) {}
  body = Body(m = 1, I = 1) {}
relations
  prescribed.v_x = 1.0
  prescribed.v_y = 2.0
  connect(prescribed.frame_b, body.frame_a) {}
end
```

```dyad
"""
A body whose `frame_a` is driven by a `PrescribedVelocity` component with
constant velocity inputs. The body should move with constant velocity,
starting from `r_start`.
"""
test component PrescribedVelocityTest
  world = World() {}
  prescribed = PrescribedVelocity(r_start = [0, 0]) {}
  body = Body(m = 1, I = 1) {}
relations
  prescribed.v_x = 1.0
  prescribed.v_y = 2.0
  connect(prescribed.frame_b, body.frame_a) {}
metadata {}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`Body`](PlanarMechanics.PrescribedVelocityTest.md)

  * [`PrescribedVelocity`](PlanarMechanics.PrescribedVelocityTest.md)

  * [`World`](PlanarMechanics.PrescribedVelocityTest.md)
