Document toolboxDocument toolbox

2023.1.1344.2 Limited Servo Motor



Overview

The Limited Servo Motor is a component to simulate an accelerated rotational motion on an axis. It consists of two components; Physical and Logic. Both are needed to control the motor through a logic adapater (connecting the Limited Servo Motor to an external controller through a Logic Simulator). Adding a Control Panel gives you the option to control the motor.

Cannot rotated more then 180 degrees in single tick. 

A succesfully created Limited Servo Motor shows up with this gizmo.


Where to find

The Limited Servo Motor can be found under

Standard Components > Motors > Limited Servo Motor > Add Physical Component

It will automatically be attached to a selected GameObject. Otherwise it will create a new GameObject to attach to.
A WheelJoint will be created automatically, this is part of the component.


Feature Layout - Physical Component

Live Data

 

Live Data

 

Target (deg)

The target angle the Limited Servo Motor will try to rotate to.

Positon (deg)

Displays the current rotation in degrees.

Properties

 

Wheel Joint

Sets the Wheel Joint the Limited Servo Motor will control.

Rotation Range

Sets the angles between which the Limited Servo Motor accepts input.

Seconds per 60 degrees

Sets the speed at which the Limited Servo Motor will try to rotate.

Damping

Sets at what speed the Limited Servo Motor accelerates in order to tune overshoot.

Dead Angle (deg)

Sets the tolerance at which the Limited Servo Motor detects input in degrees.

Pulse Width Modulation

Enables Pulse Width Modulation.

0 deg Pulse Width (ms)

Sets what pulse width matches a 0 degree input.

180 deg Pulse Width (ms)

Sets what pulse width matches a 180 degree input.

Dead Band Width (ms)

Sets the tolerance at which the Limited Servo Motor detects input in milliseconds.

Control Panel

 

Generate Control Panel for LimitedServoMotor

Create a Control Panel for this component

Feature Layout - Control Panel

Title

The Title of the Control Panel.

Click to ping the target component in the hierarchy.

Double click to edit.

DCMotor Properties

 

Target (deg)

Set the target speed voor the Limited Servo Motor.

Position (deg)

Displays the current rotation in degrees.

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 Limited Servo Component to a GameObject, in this case a simple cube.

     

  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.

     

  3. Add a Control Panel and set the Target

     

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


Prespective Documentation