| Package | krewfw.core_internal.collision |
| Class | public class CollisionShapeOBB |
| Inheritance | CollisionShapeOBB CollisionShape Object |
| Property | Defined By | ||
|---|---|---|---|
| halfSideLengths : Vector.<Number> | CollisionShapeOBB | ||
![]() | _handler : Function | CollisionShape | |
![]() | handler : Function [read-only] | CollisionShape | |
| localBasisVectors : Vector.<KrewVector2D> | CollisionShapeOBB | ||
![]() | offsetX : Number | CollisionShape | |
![]() | offsetY : Number | CollisionShape | |
| orgHalfSideLengths : Vector.<Number> | CollisionShapeOBB | ||
![]() | _owner : KrewActor | CollisionShape | |
![]() | owner : KrewActor [read-only] | CollisionShape | |
| sideVectors : Vector.<KrewVector2D> | CollisionShapeOBB | ||
![]() | _type : int = 0 | CollisionShape | |
![]() | type : int [read-only] | CollisionShape | |
![]() | x : Number [read-only] | CollisionShape | |
![]() | y : Number [read-only] | CollisionShape | |
| Method | Defined By | ||
|---|---|---|---|
CollisionShapeOBB(owner:KrewActor, handler:Function, width:Number, height:Number, offsetX:Number = 0, offsetY:Number = 0) | CollisionShapeOBB | ||
[static]
OBB に AABB をコピーするヘルパー
| CollisionShapeOBB | ||
![]() | hitTest(other:CollisionShape):Boolean | CollisionShape | |
update():void | CollisionShapeOBB | ||
| halfSideLengths | property |
public var halfSideLengths:Vector.<Number>| localBasisVectors | property |
public var localBasisVectors:Vector.<KrewVector2D>| orgHalfSideLengths | property |
public var orgHalfSideLengths:Vector.<Number>| sideVectors | property |
public var sideVectors:Vector.<KrewVector2D>| CollisionShapeOBB | () | Constructor |
public function CollisionShapeOBB(owner:KrewActor, handler:Function, width:Number, height:Number, offsetX:Number = 0, offsetY:Number = 0)owner:KrewActor | |
handler:Function | |
width:Number | |
height:Number | |
offsetX:Number (default = 0) | |
offsetY:Number (default = 0) |
| copyFromAABB | () | method |
public static function copyFromAABB(srcAabb:CollisionShapeAABB, destObb:CollisionShapeOBB):voidOBB に AABB をコピーするヘルパー
Parameters
srcAabb:CollisionShapeAABB | |
destObb:CollisionShapeOBB |
| update | () | method |
public function update():void