Search Results for

    Show / Hide Table of Contents

    Class ForceMode

    Force mode type determines the exact operation that is carried out when applying the force on a rigidbody.

    Inheritance
    System.Object
    ForceMode
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public sealed class ForceMode : Enum

    Fields

    Acceleration

    Add a continuous acceleration to the rigidbody, ignoring its mass. The parameter has unit of distance / time^2, i.e. an acceleration. It gets treated just like a force except the mass is not divided out before integration.

    Declaration
    public const ForceMode Acceleration
    Field Value
    ForceMode

    Force

    Add a continuous force to the rigidbody, using its mass. The parameter has unit of mass * distance / time^2, i.e. a force.

    Declaration
    public const ForceMode Force
    Field Value
    ForceMode

    Impulse

    Add an instant force impulse to the rigidbody, using its mass. The parameter has unit of mass * distance / time.

    Declaration
    public const ForceMode Impulse
    Field Value
    ForceMode

    value__

    Declaration
    public int value__
    Field Value
    System.Int32

    VelocityChange

    Add an instant velocity change to the rigidbody, ignoring its mass. The parameter has unit of distance / time, i.e. the effect is mass independent: a velocity change.

    Declaration
    public const ForceMode VelocityChange
    Field Value
    ForceMode

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat