Packageverlocity.components
Classpublic final class verPhysics
InheritanceverPhysics Inheritance Component Inheritance Singleton Inheritance Object

Calculates physical forces that are acted upon the entities. Handles velocity, gravity, accerlation, and outside forces.



Public Properties
 PropertyDefined By
 InheritedclassName : Object
[read-only] Returns the class name of the component for dictionary registration.
Component
Protected Properties
 PropertyDefined By
 Inheritedstage : Stage
Component
Public Methods
 MethodDefined By
  
Constructor of the component.
verPhysics
  
_Destruct():void
[override] Destructor of the component.
verPhysics
 Inherited
_IsNotUpdating():Boolean
Returns if the component is not updating (paused).
Component
 Inherited
_IsValid():Boolean
Returns if this singleton is active/valid.
Singleton
 Inherited
_SetUpdating(bUpdating:Boolean):void
Pauses/resumes the component updating, if it's pausable.
Component
 Inherited
Updates the component, if possible.
Component
  
verPhysics
  
EnablePhysics(bEnable:Boolean):void
Enables/disables physics to be applied
verPhysics
  
Returns if physics is being applied
verPhysics
Protected Methods
 MethodDefined By
 Inherited
Called if verConsole is enabled, used to create concommands for the component.
Component
 Inherited
_Update():void
Called each engine tick (verEngine), if the component updates
Component
Constructor Detail
verPhysics()Constructor
public function verPhysics()

Constructor of the component.

Method Detail
_Destruct()method
override public function _Destruct():void

Destructor of the component.

_UpdatePhysics()method 
public final function _UpdatePhysics(ent:DynamicEntity):void

Parameters

ent:DynamicEntity

EnablePhysics()method 
public final function EnablePhysics(bEnable:Boolean):void

Enables/disables physics to be applied

Parameters

bEnable:Boolean — Enable/disable physics

IsPhysicsEnabled()method 
public final function IsPhysicsEnabled():Boolean

Returns if physics is being applied

Returns
Boolean