| Package | com.asterisq.constellation.behaviors |
| Class | public class BoundedKinematicsBehavior |
| Inheritance | BoundedKinematicsBehavior Behavior flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
| bounds : Rectangle | BoundedKinematicsBehavior | ||
![]() | constellation : IConstellation
The constellation instance this behavior belongs to.
| Behavior | |
![]() | enabled : Boolean
Indicates whether this behavior is currently enabled.
| Behavior | |
![]() | nodeRendererFilterFunction : Function
The function which determines the node renderers affected by this behavior.
| Behavior | |
| Method | Defined by | ||
|---|---|---|---|
|
BoundedKinematicsBehavior(bounds:Rectangle = null)
Creates a new behavior.
| BoundedKinematicsBehavior | ||
![]() |
affectsAcceleration():Boolean
Indicates whether this class affects node renderers' acceleration.
| Behavior | |
![]() |
affectsNodeRenderer(nr:INodeRenderer):Boolean
Determines whether this behavior affects the given node renderer.
| Behavior | |
|
affectsPosition():Boolean
Indicates whether this class affects node renderers' position.
| BoundedKinematicsBehavior | ||
|
affectsVelocity():Boolean
Indicates whether this class affects node renderers' velocity.
| BoundedKinematicsBehavior | ||
![]() |
[static]
Creates an IBehavior instance and initializes it with the given XML data.
| Behavior | |
![]() |
stepEnd():void
Method called at the end of a step.
| Behavior | |
![]() |
stepStart():void
Method called at the beginning of a step.
| Behavior | |
![]() |
Modifies the given node renderer's acceleration.
| Behavior | |
|
Modifies the given node renderer's position.
| BoundedKinematicsBehavior | ||
|
Modifies the given node renderer's velocity.
| BoundedKinematicsBehavior | ||
| bounds | property |
bounds:Rectangle [read-write]Implementation
public function get bounds():Rectangle
public function set bounds(value:Rectangle):void
| BoundedKinematicsBehavior | () | constructor |
public function BoundedKinematicsBehavior(bounds:Rectangle = null)Creates a new behavior.
Parametersbounds:Rectangle (default = null) |
| affectsPosition | () | method |
public override function affectsPosition():BooleanIndicates whether this class affects node renderers' position. This function must return true if this behavior affects position.
ReturnsBoolean |
| affectsVelocity | () | method |
public override function affectsVelocity():BooleanIndicates whether this class affects node renderers' velocity. This function must return true if this behavior affects velocity.
ReturnsBoolean |
| updatePosition | () | method |
public override function updatePosition(nodeRenderer:INodeRenderer):INodeRenderer
Modifies the given node renderer's position. This method will never be
called if affectsPosition() doesn't return true. This
method should be overridden to affect the given node renderer's position.
nodeRenderer:INodeRenderer |
INodeRenderer |
| updateVelocity | () | method |
public override function updateVelocity(nodeRenderer:INodeRenderer):INodeRenderer
Modifies the given node renderer's velocity. This method will never be
called if affectsVelocity() doesn't return true. This
method should be overridden to affect the given node renderer's velocity.
nodeRenderer:INodeRenderer |
INodeRenderer |