docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DCMotor

    The role of this class is to emulate an axial DC Motor rotating on the Y axis (Up vector).

    Inheritance
    object
    NodeRuntime
    DCMotor
    Implements
    ITrajectoryGenerator
    Inherited Members
    NodeRuntime._parent
    NodeRuntime._portList
    NodeRuntime._queryPath
    NodeRuntime._tickCPUTimeNs
    NodeRuntime.Initialize(SystemGraphComponent)
    NodeRuntime.InternalInitialize()
    NodeRuntime.Start()
    NodeRuntime.Disable()
    NodeRuntime.Update()
    NodeRuntime.FixedUpdate()
    NodeRuntime.OnPortAdded(string, Type, string, PortDirection, FieldExtra, ref IPortType)
    NodeRuntime.OnPortRemoved(string)
    NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
    NodeRuntime.QueryPath
    NodeRuntime.TickCPUTimeNs
    NodeRuntime.PortDataList
    Namespace: Mechatronics.SensorSDK
    Assembly: solution.dll
    Syntax
    [NodeCategory("Actuator", "DC Motor", NodeTick.Synchronous, (LifeCycle)0, 0, NodeMode.Standard, false)]
    public class DCMotor : NodeRuntime, ITrajectoryGenerator

    Fields

    Name Description
    angularDistance
    cw
    enable
    maxRPM
    objectToMoveBinding

    A binding to the game object moved by the motor.

    speedVariation
    timeConstant
    turnTime
    velocity

    Properties

    Name Description
    ObjectToMove

    The game object moved by the motor.

    suggestedTrajectoryCount

    The suggested minimum number of points along the trajectory for accurate simulation. Must be at least as big as Trajectory.minTrajectoryCount.

    Methods

    Name Description
    ComposeTrajectory(Pose, Pose, float, List<Pose>)

    Modifies the given ancestor trajectory by composing its own trajectory, evaluated uniformly in time.

    Enable(ClockState)

    Reset internal timers.

    OnTick(double, double, ClockState, Signal)

    Apply the DC Motor model.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)