Search Results for

    Show / Hide Table of Contents

    Struct Particle

    This contains all the data related to a section the DOTSDynamicBone. Here the data is store and calculations are performed on the data

    Implements
    IBufferElementData
    Namespace: DOTSDynamicBone
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public struct Particle : IBufferElementData
    Remarks

    This contains all the data related to a section the DOTSDynamicBone. Here the data is store and calculations are performed on the data

    Fields

    AnimatedLocalToRootIndex

    Declaration
    public int AnimatedLocalToRootIndex
    Field Value
    Type Description
    System.Int32

    The index relative to the Core Entity's AnimatedLocalToRoot and AnimatedLocalToWorld DynamicBuffer

    collider

    Declaration
    public Unity.Physics.PhysicsCollider collider
    Field Value
    Type Description
    Unity.Physics.PhysicsCollider

    DOTS Physics Collider associated with the particle

    h_Damping

    Declaration
    public float h_Damping
    Field Value
    Type Description
    System.Single

    These are temporary values used when switching from a disabed/enabled mode

    h_Elasticity

    Declaration
    public float h_Elasticity
    Field Value
    Type Description
    System.Single

    These are temporary values used when switching from a disabed/enabled mode

    h_Friction

    Declaration
    public float h_Friction
    Field Value
    Type Description
    System.Single

    These are temporary values used when switching from a disabed/enabled mode

    h_Inert

    Declaration
    public float h_Inert
    Field Value
    Type Description
    System.Single

    These are temporary values used when switching from a disabed/enabled mode

    h_Stiffness

    Declaration
    public float h_Stiffness
    Field Value
    Type Description
    System.Single

    These are temporary values used when switching from a disabed/enabled mode

    m_AnimatedLocalToWorldTransform

    Declaration
    public ParticleTransform m_AnimatedLocalToWorldTransform
    Field Value
    Type Description
    ParticleTransform

    The "Transform" of the Entity the Particle represent that has been converted to AnimatedLocalToRoot space.

    m_BoneLength

    Declaration
    public float m_BoneLength
    Field Value
    Type Description
    System.Single

    length of the bone at this particle

    m_Bound

    Declaration
    public TransformsExtensions.Bound m_Bound
    Field Value
    Type Description
    TransformsExtensions.Bound

    type of bound for collision calculations.

    m_Damping

    Declaration
    public float m_Damping
    Field Value
    Type Description
    System.Single

    How much the particle slowed down.

    m_Disabled

    Declaration
    public bool m_Disabled
    Field Value
    Type Description
    System.Boolean

    disable the particle from calculations

    m_Elasticity

    Declaration
    public float m_Elasticity
    Field Value
    Type Description
    System.Single

    How much the force applied to return each particle to original orientation.

    m_EndOffset

    Declaration
    public float3 m_EndOffset
    Field Value
    Type Description
    float3

    Used for internal calculations

    m_Exclude

    Declaration
    public bool m_Exclude
    Field Value
    Type Description
    System.Boolean

    exclude the particle from calculations

    m_ExcludeFromCollision

    Declaration
    public bool m_ExcludeFromCollision
    Field Value
    Type Description
    System.Boolean

    exclude from natural physics calculations

    m_Friction

    Declaration
    public float m_Friction
    Field Value
    Type Description
    System.Single

    How much the particle slowed down when collide.

    m_Inert

    Declaration
    public float m_Inert
    Field Value
    Type Description
    System.Single

    How much particle's position change is ignored in physics simulation.

    m_InitLocalPosition

    Declaration
    public float3 m_InitLocalPosition
    Field Value
    Type Description
    float3

    Used for internal calculations

    m_InitLocalRotation

    Declaration
    public quaternion m_InitLocalRotation
    Field Value
    Type Description
    quaternion

    Used for internal calculations

    m_isCollide

    Declaration
    public bool m_isCollide
    Field Value
    Type Description
    System.Boolean

    this is set to true if a collision is detected.

    m_ParentIndex

    Declaration
    public int m_ParentIndex
    Field Value
    Type Description
    System.Int32

    The index of the parent Particle (-1 = the parent info is in the bone data)

    m_Position

    Declaration
    public float3 m_Position
    Field Value
    Type Description
    float3

    Used for internal calculations

    m_PrevPosition

    Declaration
    public float3 m_PrevPosition
    Field Value
    Type Description
    float3

    Used for internal calculations

    m_Radius

    Declaration
    public float m_Radius
    Field Value
    Type Description
    System.Single

    Each particle can be a sphere to collide with colliders. Radius describe sphere's size.

    m_Stiffness

    Declaration
    public float m_Stiffness
    Field Value
    Type Description
    System.Single

    How much particle's original orientation are preserved.

    m_Transform

    Declaration
    public ParticleTransform m_Transform
    Field Value
    Type Description
    ParticleTransform

    The "Transform" of the Entity the Particle represents

    m_TransformEntity

    Declaration
    public Entity m_TransformEntity
    Field Value
    Type Description
    Entity

    Entity that the Particle epresents

    Properties

    Null

    Declaration
    public static readonly Particle Null { get; }
    Property Value
    Type Description
    Particle

    returns a "Null" particle

    Methods

    CalculateParameters()

    Calculates the parameters based on internal data values

    Declaration
    public void CalculateParameters()

    Disable()

    Disables the Paricle and excludes it from calculations

    Declaration
    public void Disable()

    Enable()

    Enables the Partile and includes it in calculations

    Declaration
    public void Enable()

    Exclude()

    Excludes the Particle from calculations

    Declaration
    public void Exclude()

    Include()

    Includes the Particles in calculations

    Declaration
    public void Include()

    Verify()

    Verifies if some important values are valid.

    Declaration
    public void Verify()

    Zero()

    Zeros out the m_Transform's rotation and position, the m_Posision, and m_PrevPosition

    Declaration
    public void Zero()

    Implements

    IBufferElementData
    In This Article
    Back to top DOTS Dynamic Bone Documentation