Class Rotation
Implements
System.IComparable
System.IDisposable
Inherited Members
System.Object.ToString()
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.Motors
Assembly: Experior.Core.dll
Syntax
public abstract class Rotation : Electric, IComparable, IElectricMotorRotation, IElectricMotor, IMotor, IEntityNotification, IEntity, IDisposable
Constructors
Rotation(RotationInfo)
Declaration
public Rotation(RotationInfo info)
Parameters
Type | Name | Description |
---|---|---|
RotationInfo | info |
Properties
Assemblies
Declaration
[Browsable(false)]
public IMotorRotationAssemblyCollection Assemblies { get; }
Property Value
Type | Description |
---|---|
IMotorRotationAssemblyCollection |
MaxAngle
Gets or sets the max angle.
Declaration
[PropertyOrder(1)]
[TypeConverter(typeof(RadiansToDegreesPI))]
public float MaxAngle { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The max angle. |
MinAngle
Gets or sets the min angle.
Declaration
[PropertyOrder(2)]
[TypeConverter(typeof(RadiansToDegreesPI))]
public float MinAngle { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The min angle. |
Parts
Declaration
[Browsable(false)]
public IMotorRotationPartCollection Parts { get; }
Property Value
Type | Description |
---|---|
IMotorRotationPartCollection |
Methods
Add(IAssembly, Vector3, Vector3)
Declaration
public void Add(IAssembly assembly, Vector3 rotationpoint, Vector3 rotationaxis)
Parameters
Type | Name | Description |
---|---|---|
IAssembly | assembly | |
System.Numerics.Vector3 | rotationpoint | |
System.Numerics.Vector3 | rotationaxis |
Add(IRigidPart, Vector3, Vector3)
Declaration
public void Add(IRigidPart part, Vector3 rotationpoint, Vector3 rotationaxis)
Parameters
Type | Name | Description |
---|---|---|
IRigidPart | part | |
System.Numerics.Vector3 | rotationpoint | |
System.Numerics.Vector3 | rotationaxis |
Reset()
Declaration
public override void Reset()
Overrides
Reset(Single)
Declaration
public void Reset(float angle)
Parameters
Type | Name | Description |
---|---|---|
System.Single | angle |
Step(Single)
Declaration
public override void Step(float deltatime)
Parameters
Type | Name | Description |
---|---|---|
System.Single | deltatime |
Overrides
Events
OnLimitsChanged
Occurs when [on limits changed].
Declaration
public event Rotation.RotationMotorEvent OnLimitsChanged
Event Type
Type | Description |
---|---|
Rotation.RotationMotorEvent |
OnMax
Occurs when [on maximum].
Declaration
public event Rotation.RotationMotorEvent OnMax
Event Type
Type | Description |
---|---|
Rotation.RotationMotorEvent |
OnMin
Occurs when [on minimum].
Declaration
public event Rotation.RotationMotorEvent OnMin
Event Type
Type | Description |
---|---|
Rotation.RotationMotorEvent |
Implements
System.IComparable
System.IDisposable