| Package | idv.cjcat.stardust.twoD.deflectors |
| Class | public class Deflector |
| Inheritance | Deflector StardustElement |
| Subclasses | BoundingBox, BoundingCircle, CircleDeflector, LineDeflector, WrappingBox |
Deflect action.
See also
| Property | Defined by | ||
|---|---|---|---|
| active : Boolean | Deflector | ||
| bounce : Number | Deflector | ||
![]() | name : String | StardustElement | |
| Method | Defined by | ||
|---|---|---|---|
| Deflector | |||
|
getElementTypeXMLTag():XML
| Deflector | ||
| Deflector | |||
![]() |
getRelatedObjects():Array
[Abstract Method] Returns the related objects of the element.
| StardustElement | |
![]() |
getXMLTag():XML
Returns the root tag of the XML representation.
| StardustElement | |
|
getXMLTagName():String
| Deflector | ||
|
parseXML(xml:XML, builder:XMLBuilder = null):void
| Deflector | ||
|
toXML():XML
| Deflector | ||
| Method | Defined by | ||
|---|---|---|---|
|
[Abstract Method] Returns a
MotionData4D object representing the deflected position and velocity coordinates for a particle. | Deflector | ||
| active | property |
public var active:Boolean
| bounce | property |
public var bounce:Number
| Deflector | () | constructor |
public function Deflector()
| calculateMotionData4D | () | method |
protected function calculateMotionData4D(particle:Particle2D):MotionData4D
[Abstract Method] Returns a MotionData4D object representing the deflected position and velocity coordinates for a particle.
Returns null if no deflection occured. A non-null value can trigger the DeflectorTrigger action trigger.
particle:Particle2D |
MotionData4D |
See also
| getElementTypeXMLTag | () | method |
public override function getElementTypeXMLTag():XML
Returns
XML |
| getMotionData4D | () | method |
public final function getMotionData4D(particle:Particle2D):MotionData4DParameters
particle:Particle2D |
MotionData4D |
| getXMLTagName | () | method |
public override function getXMLTagName():String
Returns
String |
| parseXML | () | method |
public override function parseXML(xml:XML, builder:XMLBuilder = null):voidParameters
xml:XML |
|
builder:XMLBuilder (default = null) |
| toXML | () | method |
public override function toXML():XML
Returns
XML |