Click or drag to resize

VelocityLimitController Class

Put a limit on the linear (translation - the movespeed) and angular (rotation) velocity of bodies added to this controller.
Inheritance Hierarchy

Namespace:  Internal.tainicom.Aether.Physics2D.Controllers
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public class VelocityLimitController : Controller

The VelocityLimitController type exposes the following members.

Constructors
  NameDescription
Public methodVelocityLimitController
Initializes a new instance of the VelocityLimitController class. Sets the max linear velocity to Settings.MaxTranslation Sets the max angular velocity to Settings.MaxRotation
Public methodVelocityLimitController(Single, Single)
Initializes a new instance of the VelocityLimitController class. Pass in 0 or float.MaxValue to disable the limit. maxAngularVelocity = 0 will disable the angular velocity limit.
Top
Properties
  NameDescription
Public propertyMaxAngularVelocity
Gets or sets the max angular velocity.
Public propertyMaxLinearVelocity
Gets or sets the max linear velocity.
Public propertyWorld (Inherited from Controller.)
Top
Methods
  NameDescription
Public methodAddBody
Public methodAddDisabledCategory
Adds the category.
(Inherited from FilterData.)
Public methodAddEnabledCategory
Adds the category.
(Inherited from FilterData.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsActiveOn (Inherited from Controller.)
Public methodIsInDisabledCategory
Determines whether this body ignores the the specified controller.
(Inherited from FilterData.)
Public methodIsInEnabledInCategory
Determines whether this body ignores the the specified controller.
(Inherited from FilterData.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveBody
Public methodRemoveDisabledCategory
Removes the category.
(Inherited from FilterData.)
Public methodRemoveEnabledCategory
Removes the category.
(Inherited from FilterData.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate (Overrides ControllerUpdate(Single).)
Top
Fields
  NameDescription
Public fieldControllerCategory (Inherited from Controller.)
Public fieldDisabledOnCategories
Disable the logic on specific categories. Category.None by default.
(Inherited from FilterData.)
Public fieldDisabledOnGroup
Disable the logic on specific groups
(Inherited from FilterData.)
Public fieldEnabled (Inherited from Controller.)
Public fieldEnabledOnCategories
Enable the logic on specific categories Category.All by default.
(Inherited from FilterData.)
Public fieldEnabledOnGroup
Enable the logic on specific groups.
(Inherited from FilterData.)
Public fieldLimitAngularVelocity
Public fieldLimitLinearVelocity
Top
Extension Methods
See Also