Class CanPart
Graphical representation of a cylinder.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Experior.Core.Loads
Assembly: Experior.Core.dll
Syntax
public class CanPart : Dynamic, IDynamic, IRigidPart, IDisposable, IMeshObject, ISceneObject
Constructors
CanPart(Single, Single, Single, Color, Rigids)
Graphical representation of a cylinder.
Declaration
public CanPart(float radius, float height, float density, Color color, Rigids rigid = Rigids.Convex)
Parameters
Type | Name | Description |
---|---|---|
System.Single | radius | Radius of the cylinder in meters. |
System.Single | height | Height of the cylinder in meters. |
System.Single | density | Density of the cylinder in kilogram per cubic meter. |
System.Windows.Media.Color | color | Color of the cylinder. |
Rigids | rigid | Rigid body type of the cylinder. |
Properties
Radius
Radius of the cylinder in meters.
Declaration
public float Radius { get; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
Dispose()
Disposes the cylinder.
Declaration
public override sealed void Dispose()
Overrides
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown when Parent is already disposing. |
Implements
System.IDisposable