Package | krewfw.core_internal.collision |
Class | public class CollisionShape |
Inheritance | CollisionShape ![]() |
Subclasses | CollisionShapeAABB, CollisionShapeOBB, CollisionShapeSphere |
Property | Defined By | ||
---|---|---|---|
_handler : Function | CollisionShape | ||
handler : Function [read-only] | CollisionShape | ||
offsetX : Number | CollisionShape | ||
offsetY : Number | CollisionShape | ||
_owner : KrewActor | CollisionShape | ||
owner : KrewActor [read-only] | CollisionShape | ||
_type : int = 0 | CollisionShape | ||
type : int [read-only] | CollisionShape | ||
x : Number [read-only] | CollisionShape | ||
y : Number [read-only] | CollisionShape |
Method | Defined By | ||
---|---|---|---|
CollisionShape(owner:KrewActor, handler:Function, offsetX:Number = 0, offsetY:Number = 0) | CollisionShape | ||
hitTest(other:CollisionShape):Boolean | CollisionShape |
Constant | Defined By | ||
---|---|---|---|
SHAPE_AABB : int = 2 [static] | CollisionShape | ||
SHAPE_OBB : int = 3 [static] | CollisionShape | ||
SHAPE_SPHERE : int = 1 [static] | CollisionShape |
_handler | property |
public var _handler:Function
_owner | property |
public var _owner:KrewActor
_type | property |
public var _type:int = 0
handler | property |
handler:Function
[read-only] public function get handler():Function
offsetX | property |
public var offsetX:Number
offsetY | property |
public var offsetY:Number
owner | property |
type | property |
type:int
[read-only] public function get type():int
x | property |
x:Number
[read-only] public function get x():Number
y | property |
y:Number
[read-only] public function get y():Number
CollisionShape | () | Constructor |
public function CollisionShape(owner:KrewActor, handler:Function, offsetX:Number = 0, offsetY:Number = 0)
owner:KrewActor | |
handler:Function | |
offsetX:Number (default = 0 )
| |
offsetY:Number (default = 0 )
|
hitTest | () | method |
SHAPE_AABB | Constant |
public static const SHAPE_AABB:int = 2
SHAPE_OBB | Constant |
public static const SHAPE_OBB:int = 3
SHAPE_SPHERE | Constant |
public static const SHAPE_SPHERE:int = 1