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

    Show / Hide Table of Contents

    Class PhysicsWorldExtensions

    Utility functions acting on a physics world.

    Inheritance
    object
    PhysicsWorldExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Physics.Extensions
    Assembly: solution.dll
    Syntax
    public static class PhysicsWorldExtensions

    Methods

    Name Description
    ApplyAngularImpulse(PhysicsWorld, int, float3)

    Apply an angular impulse to a rigidBodyIndex (in world space)

    ApplyImpulse(PhysicsWorld, int, float3, float3)

    Apply an impulse to a rigid body at a point (in world space)

    ApplyLinearImpulse(PhysicsWorld, int, float3)

    Apply a linear impulse to a rigid body (in world space)

    CalculateVelocityToTarget(PhysicsWorld, int, RigidTransform, float, out float3, out float3)

    Calculate a linear and angular velocity required to move the given rigid body to the given target transform in the given time step.

    GetAngularVelocity(in PhysicsWorld, int)

    Get the angular velocity of a rigid body around it's center of mass (in world space)

    GetCenterOfMass(in PhysicsWorld, int)

    Get the Rigid Bodies Center of Mass (in World Space)

    GetCollisionFilter(in PhysicsWorld, int)

    An in PhysicsWorld extension method that gets collision filter.

    GetEffectiveMass(in PhysicsWorld, int, float3, float3)

    Get the effective mass of a Rigid Body in a given direction and from a particular point (in World Space)

    GetLinearVelocity(in PhysicsWorld, int)

    Get the linear velocity of a rigid body (in world space)

    GetLinearVelocity(in PhysicsWorld, int, float3)

    Get the linear velocity of a rigid body at a given point (in world space)

    GetMass(in PhysicsWorld, int)

    An in PhysicsWorld extension method that gets the mass.

    GetPosition(in PhysicsWorld, int)

    An in PhysicsWorld extension method that gets a position of a body in World Space.

    GetRotation(in PhysicsWorld, int)

    An in PhysicsWorld extension method that gets a rotation.

    SetAngularVelocity(PhysicsWorld, int, float3)

    Set the angular velocity of a rigid body (in world space)

    SetLinearVelocity(PhysicsWorld, int, float3)

    Set the linear velocity of a rigid body (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)