Class CapsuleMesh
Capsule primitive mesh. To render this mesh use the Evergine.Components.Graphics3D.MeshRenderer class.
Inheritance
DependencyObject
AttachableObject
PrefabInstanceObject
Component
BaseModel
MeshComponent
CapsuleMesh
Implements
Inherited Members
MeshComponent.modelLink
MeshComponent.meshContainer
MeshComponent.ChangedMesh
MeshComponent.modelMeshName
MeshComponent.MeshCount
MeshComponent.MeshContainer
MeshComponent.MeshNames
MeshComponent.Meshes
MeshComponent.BoundingBox
MeshComponent.OnDestroy()
MeshComponent.UnloadModel()
MeshComponent.ThrowRefreshEvent()
MeshComponent.RefreshMesh()
BaseModel.customBoundingBoxSet
BaseModel.Refreshed
BaseModel.BoundingBoxRefreshed
Component.Owner
Component.Managers
Component.ShouldBeActivated
Component.Clone()
Component.Attach(Entity)
Component.OnLoaded()
Component.OnActivated()
Component.Start()
Component.OnDeactivated()
Component.OnDetach()
PrefabInstanceObject.PrefabSource
PrefabInstanceObject.PrefabElementId
PrefabInstanceObject.IsPrefabInstance
PrefabInstanceObject.IsMissingPrefabSource
AttachableObject.AttachableStateChanged
AttachableObject.IsEnabled
AttachableObject.State
AttachableObject.IsLoaded
AttachableObject.IsAttached
AttachableObject.IsActivated
AttachableObject.IsStarted
AttachableObject.IsDestroyed
AttachableObject.DependencyBroken()
DependencyObject.Dependencies
DependencyObject.OnDependencyRemoved
Namespace: Evergine.Components.Graphics3D
Assembly: Evergine.Components.dll
Syntax
public class CapsuleMesh : PrimitiveBaseMesh, IDependencyObject
Constructors
CapsuleMesh()
Initializes a new instance of the CapsuleMesh class.
Declaration
public CapsuleMesh()
Properties
Height
Gets or sets the height of the capsule. Must be greater than 0
.
Declaration
[RenderPropertyAsFInput(1.1920929E-07, 3.4028235E+38)]
public float Height { get; set; }
Property Value
Type | Description |
---|---|
float |
Radius
Gets or sets the radius of the capsule. Must be greater than 0
.
Declaration
[RenderPropertyAsFInput(1.1920929E-07, 3.4028235E+38)]
public float Radius { get; set; }
Property Value
Type | Description |
---|---|
float |
Tessellation
Gets or sets the tessellation of the capsule. Must be even.
Declaration
[RenderPropertyAsInput(2, 25, AsSlider = true, DesiredChange = 1, DesiredLargeChange = 2, DefaultValue = 16)]
public int Tessellation { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
Build(PrimitiveModelBuilder)
Builds a primitive instance using the given builder.
Declaration
protected override void Build(PrimitiveModelBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
PrimitiveModelBuilder | builder | The primitive model builder. |
Overrides
GetPrimitiveHashCode()
Gets an unique identifier of the primitive definition.
Declaration
protected override int GetPrimitiveHashCode()
Returns
Type | Description |
---|---|
int | An unique identifier of the primitive definition. |