Versions Compared

Key

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

...

A succesfully created DCMotor shows up with this gizmo.

...

Where to find

The DC Motor can be found under

...

It will automatically be attached to a selected GameObject . Otherwise or otherwise it will create a new GameObject to attach to.
A Wheel Joint will be created automatically as part of the component.

...

Please note: this is an example of a GameObject with the Physical DCMotor component.

...

Feature Layout - Physical Component

...

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/ss2)

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

...

Control Panel

Generate Control Panel for DCMotor

Create a Control Panel for this component.

...

How to use - Physical Component

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

  2. Add a Kinematics Controller,this can be found under Mechanics > Add Kinematics > Kinematics Controller. Make sure the Kinematic Controller is visible in the hierarchy and not connected to the Cube.

  3. Make sure the Cube is parented under the Kinematic Controller in the Hierarchy.

  4. Add a Control Panel

  5. Set the Preferred Velocity

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

...

Properties

DC Motor

Selects a DCMotor component you wish to connect to the PLC.

...

In the PLC I/Opanel you can see the latest input and output values from the PLC.

...

PLC Settings and Debugging are general Logic Component settings. Look at the Logic Component Documentation (check link) for more details.

...

How to use - Logic Component

Look at the Logic Component Documentation (add link) for an example of how to connect a Motor Component to an external PLC.

...