Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Feature Layout - Physical Component

...

View file
nameInvalid file id - UNKNOWN_MEDIA_ID
page2022.1.1 Receiver

Live Data

Target Velocity (deg/s)

Displays value of target velocity in degrees per second.

Velocity (deg/s)

Displays current velocity in degrees per second.

Properties

Wheel Joint

Sets the Wheel Joint the DCMotor will control.

Maximum Velocity (deg/s)

Sets the maximum allowed velocity of the DCMotor in degrees per second.

Angular Acceleration (deg/s/s)

Sets the maximum allowed acceleration in degrees per second per second.

Angular Deceleration (deg/s/s)

Sets the maximum allowed deceleration in degrees per second per second.

Control Panel

Generate Control Panel

Create a Control Panel for this component.

...

Title

The Title of the Control Panel.

Click to ping the target component in the hierarchy.

Double click to edit.

DCMotor Properties

Preferred Velocity (deg/s)

Sets the desired velocity at which the DCMotor should spin.

Velocity (deg/s)

Displays current velocity in degrees per second.

Start/Stop

Starts/Stops the motor.

Target Component

Target Gameobject

The gameobject which has a standardcomponent you want the Control Panel for.

Target Component

The Component which for which a Control Panel is generated.

...

How to use

  1. Add a DC Motor Component to a GameObject, in this case a simple cube.

    Image Modified
  2. Add a Kinematics Controller,this can be found under Mechanics > Kinematics > Add Kinematics Controller. Make sure the Cube is parented under the Kinematic Controller in the Hierarchy.

    Image Modified

  3. Add a Control Panel and set the Preferred Velocity

    Image Modified

  4. Press Play to see the rotation of the cube, controlled by the DC Motor

    Image Modified

...