Skip to content

RapierPhysicsSprite

Extends

  • Container

Implements

Constructors

new RapierPhysicsSprite()

new RapierPhysicsSprite(pTexture, pSheet?, pSize?, pBodyType?): RapierPhysicsSprite

Parameters

pTexture: string | Texture<Resource>

pSheet?: SpritesheetLike

pSize?: number | [number, number?] | object

pBodyType?: PhysicsBodyType= PhysicsBodyType.RECTANGLE

Returns

RapierPhysicsSprite

Overrides

Container.constructor

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:26

Properties

_bodyType

_bodyType: PhysicsBodyType

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:24


_size

_size: object

x

x: number

y

y: number

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:23


body

body: RigidBody

Implementation of

IPhysicsObject.body

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:20


collider

collider: Collider

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:21


visual

visual: Sprite

Implementation of

IPhysicsObject.visual

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:19


DEFAULT_DEBUG_COLOR

static readonly DEFAULT_DEBUG_COLOR: number = 0x29c5f6

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:18

Accessors

activeCollisionTypes

get activeCollisionTypes(): ActiveCollisionTypes

Returns

ActiveCollisionTypes

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:75


activeEvents

get activeEvents(): ActiveEvents

Returns

ActiveEvents

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:80


activeHooks

get activeHooks(): ActiveHooks

Returns

ActiveHooks

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:85


app

get app(): Application<any>

Returns

Application<any>

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:67


debugColor

get debugColor(): number

Returns

number

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:63


physics

get physics(): RapierPhysics

Returns

RapierPhysics

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:59


world

get world(): World

Returns

World

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:71

Methods

createBody()

createBody(): void

Returns

void

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:98


onAdded()

onAdded(): void

Returns

void

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:89


onRemoved()

onRemoved(): void

Returns

void

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:94


update()

update(): void

Returns

void

Source

src/physics/rapier/gameobjects/RapierPhysicsSprite.ts:142