Search Results for

    Show / Hide Table of Contents

    Class MeshCollider3D

    RigidBody3D enables your entities to act under the control of physics. The Rigidbody can receive forces and torque to make your objects move in a realistic way. Any entity must contain a Rigidbody to be influenced by gravity, act under added forces, or interact with other objects through the physics engine.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    PrefabInstanceObject
    Component
    Collider3D
    Collider3D<IMeshColliderShape3D>
    MeshCollider3D
    Implements
    IDependencyObject
    Inherited Members
    Collider3D<IMeshColliderShape3D>.physicColliderShape
    Collider3D<IMeshColliderShape3D>.InternalColliderShape
    Collider3D<IMeshColliderShape3D>.CreateColliderShape3D()
    Collider3D.OnShapeChanged
    Collider3D.MinSize
    Collider3D.physicBody
    Collider3D.offset
    Collider3D.Transform3D
    Collider3D.usedTransform
    Collider3D.model
    Collider3D.margin
    Collider3D.PhysicBody
    Collider3D.Margin
    Collider3D.Offset
    Collider3D.EffectiveOffset
    Collider3D.OffsetTransform
    Collider3D.PointTest(Vector3)
    Collider3D.OnAttached()
    Collider3D.Start()
    Collider3D.OnDetach()
    Collider3D.SweepTest(Vector3, float, CollisionCategory3D)
    Collider3D.SweepTestAll(Vector3, float, ICollection<HitResult3D>, CollisionCategory3D)
    Collider3D.RemoveCollider()
    Collider3D.RaiseShapeChanged()
    Collider3D.RefreshOffsetTransform(Vector3)
    Collider3D.RefreshOffsetTransform(Vector3, Quaternion, bool)
    Component.Owner
    Component.Managers
    Component.ShouldBeActivated
    Component.Clone()
    Component.Attach(Entity)
    Component.OnLoaded()
    Component.OnActivated()
    Component.OnDeactivated()
    Component.OnDestroy()
    PrefabInstanceObject.PrefabSource
    PrefabInstanceObject.RefreshPrefab(Prefab)
    PrefabInstanceObject.PrefabElementId
    PrefabInstanceObject.IsPrefabInstance
    PrefabInstanceObject.IsMissingPrefabSource
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.Destroy()
    AttachableObject.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    Namespace: Evergine.Framework.Physics3D
    Assembly: Evergine.Framework.dll
    Syntax
    public class MeshCollider3D : Collider3D<IMeshColliderShape3D>, IDependencyObject

    Constructors

    MeshCollider3D()

    Initializes a new instance of the MeshCollider3D class.

    Declaration
    public MeshCollider3D()

    Fields

    AsyncShapeCreation

    The shape creation is asynchronous.

    Declaration
    public bool AsyncShapeCreation
    Field Value
    Type Description
    bool

    Properties

    IsConvex

    Gets or sets a value indicating whether.

    Declaration
    public bool IsConvex { get; set; }
    Property Value
    Type Description
    bool

    OrientationOffset

    Gets or sets the orientation.

    Declaration
    public Quaternion OrientationOffset { get; set; }
    Property Value
    Type Description
    Quaternion

    RotationOffset

    Gets or sets the orientation.

    Declaration
    [RenderProperty(typeof(Vector3RadianToDegreeConverter))]
    public Vector3 RotationOffset { get; set; }
    Property Value
    Type Description
    Vector3

    Size

    Gets or sets the size of the box collider.

    Declaration
    public Vector3 Size { get; set; }
    Property Value
    Type Description
    Vector3

    Methods

    AddShapeToRigidBody()

    Adds the shape to the rigidbody.

    Declaration
    protected override void AddShapeToRigidBody()
    Overrides
    Collider3D.AddShapeToRigidBody()

    BaseCreateColliderShape()

    Base method for creating a collider shape.

    Declaration
    protected override void BaseCreateColliderShape()
    Overrides
    Collider3D.BaseCreateColliderShape()

    CreateColliderShape3D_T()

    Creates the physics object.

    Declaration
    protected override IMeshColliderShape3D CreateColliderShape3D_T()
    Returns
    Type Description
    IMeshColliderShape3D

    A new physics object.

    Overrides
    Collider3D<IMeshColliderShape3D>.CreateColliderShape3D_T()

    OnModelRefreshed()

    The model has been refreshed, so we need to recreate the models.

    Declaration
    protected override void OnModelRefreshed()
    Overrides
    Collider3D.OnModelRefreshed()

    OnScaleChanged(object, EventArgs)

    The scale has changed.

    Declaration
    protected override void OnScaleChanged(object sender, EventArgs e)
    Parameters
    Type Name Description
    object sender

    The transform.

    EventArgs e

    The args.

    Overrides
    Collider3D.OnScaleChanged(object, EventArgs)

    RefreshHierarchyTransform()

    Refreshes the hierarchy transform.

    Declaration
    protected override void RefreshHierarchyTransform()
    Overrides
    Collider3D.RefreshHierarchyTransform()

    RefreshShapeDimensions()

    Refreshes the shape dimensions.

    Declaration
    protected override void RefreshShapeDimensions()
    Overrides
    Collider3D.RefreshShapeDimensions()

    Implements

    IDependencyObject

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX