Show / Hide Table of Contents

Interface IMyMotorStator

Describes motor stator block (PB scripting interface)

Inherited Members
IMyMechanicalConnectionBlock.Attach()
IMyMechanicalConnectionBlock.Detach()
IMyMechanicalConnectionBlock.TopGrid
IMyMechanicalConnectionBlock.Top
IMyMechanicalConnectionBlock.SafetyLockSpeed
IMyMechanicalConnectionBlock.SafetyLock
IMyMechanicalConnectionBlock.IsAttached
IMyMechanicalConnectionBlock.IsLocked
IMyMechanicalConnectionBlock.PendingAttachment
IMyFunctionalBlock.RequestEnable(Boolean)
IMyFunctionalBlock.Enabled
IMyTerminalBlock.HasLocalPlayerAccess()
IMyTerminalBlock.HasPlayerAccess(Int64, MyRelationsBetweenPlayerAndBlock)
IMyTerminalBlock.HasNobodyPlayerAccessToBlock()
IMyTerminalBlock.HasPlayerAccessWithNobodyCheck(Int64, Boolean)
IMyTerminalBlock.SetCustomName(String)
IMyTerminalBlock.SetCustomName(StringBuilder)
IMyTerminalBlock.GetActions(List<ITerminalAction>, Func<ITerminalAction, Boolean>)
IMyTerminalBlock.SearchActionsOfName(String, List<ITerminalAction>, Func<ITerminalAction, Boolean>)
IMyTerminalBlock.GetActionWithName(String)
IMyTerminalBlock.GetProperty(String)
IMyTerminalBlock.GetProperties(List<ITerminalProperty>, Func<ITerminalProperty, Boolean>)
IMyTerminalBlock.IsSameConstructAs(IMyTerminalBlock)
IMyTerminalBlock.CustomName
IMyTerminalBlock.CustomNameWithFaction
IMyTerminalBlock.DetailedInfo
IMyTerminalBlock.CustomInfo
IMyTerminalBlock.CustomData
IMyTerminalBlock.ShowOnHUD
IMyTerminalBlock.ShowInTerminal
IMyTerminalBlock.ShowInToolbarConfig
IMyTerminalBlock.ShowInInventory
IMyCubeBlock.GetOwnerFactionTag()
IMyCubeBlock.GetPlayerRelationToOwner()
IMyCubeBlock.GetUserRelationToOwner(Int64, MyRelationsBetweenPlayerAndBlock)
IMyCubeBlock.UpdateIsWorking()
IMyCubeBlock.UpdateVisual()
IMyCubeBlock.BlockDefinition
IMyCubeBlock.CubeGrid
IMyCubeBlock.DefinitionDisplayNameText
IMyCubeBlock.DisassembleRatio
IMyCubeBlock.DisplayNameText
IMyCubeBlock.IsBeingHacked
IMyCubeBlock.IsFunctional
IMyCubeBlock.IsWorking
IMyCubeBlock.Max
IMyCubeBlock.Mass
IMyCubeBlock.Min
IMyCubeBlock.NumberInGrid
IMyCubeBlock.Orientation
IMyCubeBlock.OwnerId
IMyCubeBlock.Position
IMyEntity.GetInventory()
IMyEntity.GetInventory(Int32)
IMyEntity.GetPosition()
IMyEntity.Components
IMyEntity.EntityId
IMyEntity.Name
IMyEntity.DisplayName
IMyEntity.HasInventory
IMyEntity.InventoryCount
IMyEntity.Closed
IMyEntity.WorldAABB
IMyEntity.WorldAABBHr
IMyEntity.WorldMatrix
IMyEntity.WorldVolume
IMyEntity.WorldVolumeHr
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Syntax
public interface IMyMotorStator : IMyMotorBase, IMyMechanicalConnectionBlock, IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity

Properties

Angle

Gets the current angle of the rotor in radians.

Declaration
float Angle { get; }
Property Value
Type Description
System.Single

BrakingTorque

Gets or sets the torque applied when stopping the rotor top

Declaration
float BrakingTorque { get; set; }
Property Value
Type Description
System.Single

Displacement

Gets or sets the vertical displacement of the rotor top

Declaration
float Displacement { get; set; }
Property Value
Type Description
System.Single

LowerLimitDeg

Gets or sets the lower angle limit of the rotor in degrees. Set to float.MinValue for no limit.

Declaration
float LowerLimitDeg { get; set; }
Property Value
Type Description
System.Single

LowerLimitRad

Gets or sets the lower angle limit of the rotor in radians. Set to float.MinValue for no limit.

Declaration
float LowerLimitRad { get; set; }
Property Value
Type Description
System.Single

RotorLock

Gets or sets rotor lock

Declaration
bool RotorLock { get; set; }
Property Value
Type Description
System.Boolean

TargetVelocityRad

Gets or sets the desired velocity of the rotor in radians/second

Declaration
float TargetVelocityRad { get; set; }
Property Value
Type Description
System.Single

TargetVelocityRPM

Gets or sets the desired velocity of the rotor in RPM

Declaration
float TargetVelocityRPM { get; set; }
Property Value
Type Description
System.Single

Torque

Gets or sets the torque applied when moving the rotor top

Declaration
float Torque { get; set; }
Property Value
Type Description
System.Single

UpperLimitDeg

Gets or sets the upper angle limit of the rotor in degrees. Set to float.MaxValue for no limit.

Declaration
float UpperLimitDeg { get; set; }
Property Value
Type Description
System.Single

UpperLimitRad

Gets or sets the upper angle limit of the rotor in radians. Set to float.MaxValue for no limit.

Declaration
float UpperLimitRad { get; set; }
Property Value
Type Description
System.Single

Methods

RotateToAngle(MyRotationDirection, Single, Single)

Sets velocity and limits to rotate the rotor to the specified angle value

Declaration
void RotateToAngle(MyRotationDirection dir, float desiredAng, float velAbsRpm)
Parameters
Type Name Description
MyRotationDirection dir

Rotation mode, MyRotationDirection

System.Single desiredAng

Angle in degrees, ranging from -360 to 360

System.Single velAbsRpm

Velocity magnitude in rotations per minute

Extension Methods

TerminalBlockExtentions.GetId(IMyTerminalBlock)
TerminalBlockExtentions.ApplyAction(IMyTerminalBlock, String)
TerminalBlockExtentions.ApplyAction(IMyTerminalBlock, String, List<TerminalActionParameter>)
TerminalBlockExtentions.HasAction(IMyTerminalBlock, String)
TerminalBlockExtentions.HasInventory(IMyTerminalBlock)
TerminalBlockExtentions.GetInventory(IMyTerminalBlock, Int32)
TerminalBlockExtentions.GetInventoryCount(IMyTerminalBlock)
TerminalBlockExtentions.GetUseConveyorSystem(IMyTerminalBlock)
TerminalBlockExtentions.SetUseConveyorSystem(IMyTerminalBlock, Boolean)
TerminalPropertyExtensions.GetValueFloat(IMyTerminalBlock, String)
TerminalPropertyExtensions.SetValueFloat(IMyTerminalBlock, String, Single)
TerminalPropertyExtensions.GetValueBool(IMyTerminalBlock, String)
TerminalPropertyExtensions.SetValueBool(IMyTerminalBlock, String, Boolean)
TerminalPropertyExtensions.GetValueColor(IMyTerminalBlock, String)
TerminalPropertyExtensions.SetValueColor(IMyTerminalBlock, String, Color)
TerminalPropertyExtensions.GetValue<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.GetDefaultValue<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.GetMininum<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.GetMinimum<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.GetMaximum<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.SetValue<T>(IMyTerminalBlock, String, T)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾