{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method MotorPlanar | Unity Physics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method MotorPlanar

    MotorPlanar(float, float, float, float)

    Moves bodies along one axis to specified target distance. Movement about the other two perpendicular axes is unrestricted.

    Declaration
    public static Constraint MotorPlanar(float target, float maxImpulseOfMotor = Infinity, float springFrequency = 74341.31, float dampingRatio = 2530.126)
    Parameters
    Type Name Description
    float target

    The target distance the motor drives towards (along Joint's Axis).

    float maxImpulseOfMotor

    The magnitude of the max impulse that a motor constraint can exert in a single step. Must be positive. This is a motor specific usage that does not represent the impulse threshold for event reporting.

    float springFrequency

    The spring frequency used to relax this constraint.

    float dampingRatio

    The damping ratio used to relax this constraint.

    Returns
    Type Description
    Constraint

    A constraint

    In This Article
    Back to top
    Copyright © 2023 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)