{!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} Struct RigidBodyAspect | Unity Physics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RigidBodyAspect

    A rigid body aspect. Contatins transform data, mass, mass overide, velocity, damping and gravity factor information.

    Implements
    IAspect
    IQueryTypeParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Physics.Aspects
    Assembly: solution.dll
    Syntax
    public readonly struct RigidBodyAspect : IAspect, IQueryTypeParameter

    Fields

    Name Description
    Entity

    The entity of this aspect.

    Properties

    Name Description
    AngularDamping

    Gets or sets the angular damping.

    AngularVelocityLocalSpace

    Gets or sets the angular velocity in local space.

    AngularVelocityWorldSpace

    Gets or sets the angular velocity in world space.

    CenterOfMassLocalSpace

    Gets or sets the center of mass in local space.

    CenterOfMassWorldSpace

    Gets or sets the center of mass in world space.

    GravityFactor

    Gets or sets the gravity factor.

    Inertia

    Gets or sets the inertia.

    IsKinematic

    Gets or sets a value indicating whether this object is kinematic.

    LinearDamping

    Gets or sets the linear damping.

    LinearVelocity

    Gets or sets the linear velocity.

    Mass

    Gets or sets the mass.

    Position

    Gets or sets the world space position.

    Rotation

    Gets or sets the world space rotation.

    Scale

    Gets or sets the uniform scale.

    WorldFromBody

    Gets or sets the world transform of this aspect.

    Methods

    Name Description
    ApplyAngularImpulseLocalSpace(float3)

    Applies the angular impulse in local space.

    ApplyAngularImpulseWorldSpace(float3)

    Applies the angular impulse in world space.

    ApplyExplosiveImpulse(float, float3, float, float3, float)

    Applies the explosive impulse.

    ApplyExplosiveImpulse(float, float3, float, float3, CollisionFilter, float)

    Applies the explosive impulse.

    ApplyImpulseAtPointLocalSpace(float3, float3)

    Applies the impulse at point in local space.

    ApplyImpulseAtPointWorldSpace(float3, float3)

    Applies the impulse at point in world space.

    ApplyLinearImpulseLocalSpace(float3)

    Applies the linear impulse in local space.

    ApplyLinearImpulseWorldSpace(float3)

    Applies the linear impulse in world space.

    GetEffectiveMassLocalSpace(float3, float3)

    Gets effective mass in local space.

    GetEffectiveMassWorldSpace(float3, float3)

    Gets effective mass in world space.

    GetLinearVelocityAtPointLocalSpace(float3)

    Gets linear velocity at point in local space.

    GetLinearVelocityAtPointWorldSpace(float3)

    Gets linear velocity at point in world space.

    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)