MyBenchLab Documentation Open editor

Motor

Component kind motor (category mech, DSL name motor, API v1)

Rotational source. Produces a constant RPM on its axis port every tick; connecting a shaft or gear via mech.couple / mech.mesh drives the downstream chain.

Parameters

Parameters schema

ParameterTypeDefaultConstraints
rpmNumber30
bodyLengthNumber40
bodyDiameterNumber30
shaftLengthNumber15
shaftDiameterNumber8
colorString

Ports

PortTypeDescription
axisrotationalRotational output. The motor seeds this port every tick.

Kinematics

Source. Auto-registers a driver with { rpm: params.rpm } on the axis port — no mech.drive(...) needed.

Example

motor "M1" {
  rpm: 60
  at: position(0, 0, -50)
}

engine apiVersion · 1

Want to see this component in 3D with live parameter controls? Open the interactive preview.