interface IPhysics2DFactory { worldCount: number; worldMap: Map<number, Physics2DWorldManager>; allowWorldSleep(world: any,
allowSleep: boolean): void; appendFlags(jsDraw: any,
flags: number): void; clearFlags(jsDraw: any,
flags: number): void; clearForces(world: any): void; createBox2DDraw(world: any,
flag: number): any; createContactListener(): any; createFilter(): any; createJointDef(world: any,
type: EPhysics2DJoint,
def: physics2D_BaseJointDef): any; createJSQueryCallback(): any; createJSRayCastCallback(): any; createMassData(): any; createPhyVec2(x: number,
y: number): any; createShape(world: any,
body: any,
shapeType: EPhysics2DShape,
shapdeDef: any): any; createShapeDef(world: any,
shapeDef: Box2DShapeDef,
filter: any): any; createWorld(worldDef: box2DWorldDef): any; destroyData(data: any): void; destroyShape(world: any,
body: any,
shape: any): void; destroyWorld(world: any): void; get_DistanceJoint_length(joint: any): number; get_joint_reactionTorque(joint: any): number; get_joint_recationForce(joint: any): any; get_RigibBody_Transform(body: any): any; get_rigidBody_allowSleep(body: any): boolean; get_rigidBody_angularDamping(body: any): number; get_rigidBody_bullet(body: any): boolean; get_rigidBody_fixedRotation(body: any): boolean; get_rigidBody_gravityScale(body: any): number; get_rigidBody_isEnable(body: any): boolean; get_rigidBody_linearDamping(body: any): number; get_rigidBody_linearVelocityFromLocalPoint(body: any,
localPoint: Vector2): Vector2; get_rigidBody_linearVelocityFromWorldPoint(body: any,
worldPoint: Vector2): Vector2; get_rigidBody_LocalVector(body: any,
value: Vector2): Vector2; get_rigidBody_next(body: any): any; get_rigidBody_type(body: any): string; get_rigidBody_userData(body: any): any; get_rigidBody_WorldVector(body: any,
value: Vector2): Vector2; get_shape_AABB(shape: any): any; get_shape_isSensor(shape: any): boolean; get_shape_massData(shape: any,
massData: any): any; getBodyCount(world: any): number; getBodyList(world: any): any[]; getContactCount(world: any): number; getContactList(world: any): any[]; getContactShapeA(contact: any): any; getContactShapeB(contact: any): any; getfilterData(shape: any): any; getJointCount(world: any): number; getJointList(world: any): any[]; getShape(shape: any,
type: EPhysics2DShape): any; getShapeByDef(shapeDef: any,
shapeType: EPhysics2DShape): any; isValidJoint(joint: any): boolean; QueryAABB(world: any,
jsquerycallback: any,
bounds: any): void; RayCast(world: any,
jsraycastcallback: any,
startPoint: Vector2,
endPoint: Vector2): void; rigidbody_ApplyAngularImpulse(body: any,
impulse: number): void; set_rigidBody_userData(body: any,
data: any): void; set_shape_density(shape: any,
density: number): void; set_shape_friction(shape: any,
friction: number): void; set_shape_isSensor(shape: any,
sensor: boolean): void; set_shape_reFilter(shape: any): void; set_shape_restitution(shape: any,
restitution: number): void; set_shape_restitutionThreshold(shape: any,
restitutionThreshold: number): void; setContactListener(world: any,
listener: Function): void; setDestructionListener(world: any,
destroyFun: Function): void; setfilterData(shape: any,
filterData: any): void; setJoint_userData(joint: any,
data: any): void; shape_rayCast(shape: any,
output: any,
input: any,
childIndex: number): boolean; shapeCast(): void; shiftOrigin(world: any,
newOrigin: Vector2): void; warpPoint(ins: any,
type: Ebox2DType): any; } 属性
worldCount
worldCount: number
方法
allowWorldSleep
- allowWorldSleep(world, allowSleep): void
参数
- world: any
- allowSleep: boolean
返回 void
appendFlags
- appendFlags(jsDraw, flags): void
返回 void
clearFlags
- clearFlags(jsDraw, flags): void
返回 void
clearForces
- clearForces(world): void
返回 void
createBox2DDraw
- createBox2DDraw(world, flag): any
返回 any
createContactListener
- createContactListener(): any
返回 any
createFilter
- createFilter(): any
返回 any
createJointDef
- createJointDef(world, type, def): any
返回 any
createJSQueryCallback
- createJSQueryCallback(): any
返回 any
createJSRayCastCallback
- createJSRayCastCallback(): any
返回 any
createMassData
- createMassData(): any
返回 any
createPhyVec2
- createPhyVec2(x, y): any
返回 any
createShape
- createShape(world, body, shapeType, shapdeDef): any
返回 any
createShapeDef
- createShapeDef(world, shapeDef, filter): any
参数
- world: any
- shapeDef: Box2DShapeDef
- filter: any
返回 any
createWorld
- createWorld(worldDef): any
返回 any
destroyData
- destroyData(data): void
返回 void
destroyShape
- destroyShape(world, body, shape): void
参数
- world: any
- body: any
- shape: any
返回 void
destroyWorld
- destroyWorld(world): void
返回 void
get_DistanceJoint_length
- get_DistanceJoint_length(joint): number
返回 number
get_joint_reactionTorque
- get_joint_reactionTorque(joint): number
返回 number
get_joint_recationForce
- get_joint_recationForce(joint): any
返回 any
get_RigibBody_Transform
- get_RigibBody_Transform(body): any
返回 any
get_rigidBody_allowSleep
- get_rigidBody_allowSleep(body): boolean
返回 boolean
get_rigidBody_angularDamping
- get_rigidBody_angularDamping(body): number
返回 number
get_rigidBody_bullet
- get_rigidBody_bullet(body): boolean
返回 boolean
get_rigidBody_fixedRotation
- get_rigidBody_fixedRotation(body): boolean
返回 boolean
get_rigidBody_gravityScale
- get_rigidBody_gravityScale(body): number
返回 number
get_rigidBody_isEnable
- get_rigidBody_isEnable(body): boolean
返回 boolean
get_rigidBody_linearDamping
- get_rigidBody_linearDamping(body): number
返回 number
get_rigidBody_linearVelocityFromLocalPoint
- get_rigidBody_linearVelocityFromLocalPoint(body, localPoint): Vector2
get_rigidBody_linearVelocityFromWorldPoint
- get_rigidBody_linearVelocityFromWorldPoint(body, worldPoint): Vector2
get_rigidBody_LocalVector
- get_rigidBody_LocalVector(body, value): Vector2
get_rigidBody_next
- get_rigidBody_next(body): any
返回 any
get_rigidBody_type
- get_rigidBody_type(body): string
返回 string
get_rigidBody_userData
- get_rigidBody_userData(body): any
返回 any
get_rigidBody_WorldVector
- get_rigidBody_WorldVector(body, value): Vector2
get_shape_AABB
- get_shape_AABB(shape): any
返回 any
get_shape_isSensor
- get_shape_isSensor(shape): boolean
返回 boolean
get_shape_massData
- get_shape_massData(shape, massData): any
返回 any
getBodyCount
- getBodyCount(world): number
返回 number
getBodyList
- getBodyList(world): any[]
返回 any[]
getContactCount
- getContactCount(world): number
返回 number
getContactList
- getContactList(world): any[]
返回 any[]
getContactShapeA
- getContactShapeA(contact): any
返回 any
getContactShapeB
- getContactShapeB(contact): any
返回 any
getfilterData
- getfilterData(shape): any
返回 any
getJointCount
- getJointCount(world): number
返回 number
getJointList
- getJointList(world): any[]
返回 any[]
getShape
- getShape(shape, type): any
返回 any
getShapeByDef
- getShapeByDef(shapeDef, shapeType): any
返回 any
isValidJoint
- isValidJoint(joint): boolean
返回 boolean
QueryAABB
- QueryAABB(world, jsquerycallback, bounds): void
参数
- world: any
- jsquerycallback: any
- bounds: any
返回 void
RayCast
- RayCast(world, jsraycastcallback, startPoint, endPoint): void
返回 void
rigidbody_ApplyAngularImpulse
- rigidbody_ApplyAngularImpulse(body, impulse): void
返回 void
set_rigidBody_userData
- set_rigidBody_userData(body, data): void
返回 void
set_shape_density
- set_shape_density(shape, density): void
参数
- shape: any
- density: number
返回 void
set_shape_friction
- set_shape_friction(shape, friction): void
参数
- shape: any
- friction: number
返回 void
set_shape_isSensor
- set_shape_isSensor(shape, sensor): void
参数
- shape: any
- sensor: boolean
返回 void
set_shape_reFilter
- set_shape_reFilter(shape): void
返回 void
set_shape_restitution
- set_shape_restitution(shape, restitution): void
参数
- shape: any
- restitution: number
返回 void
set_shape_restitutionThreshold
- set_shape_restitutionThreshold(shape, restitutionThreshold): void
参数
- shape: any
- restitutionThreshold: number
返回 void
setContactListener
- setContactListener(world, listener): void
参数
- world: any
- listener: Function
返回 void
setDestructionListener
- setDestructionListener(world, destroyFun): void
参数
- world: any
- destroyFun: Function
返回 void
setfilterData
- setfilterData(shape, filterData): void
参数
- shape: any
- filterData: any
返回 void
setJoint_userData
- setJoint_userData(joint, data): void
返回 void
shape_rayCast
- shape_rayCast(shape, output, input, childIndex): boolean
参数
- shape: any
- output: any
- input: any
- childIndex: number
返回 boolean
shiftOrigin
- shiftOrigin(world, newOrigin): void
返回 void
warpPoint
- warpPoint(ins, type): any
返回 any
Blueprint Ignore