Skip to content

Class: btKinematicCharacterController

Ammo.btKinematicCharacterController

Hierarchy

Constructors

Methods

Constructors

constructor

new btKinematicCharacterController(ghostObject, convexShape, stepHeight, upAxis?): btKinematicCharacterController

Parameters

NameType
ghostObjectbtPairCachingGhostObject
convexShapebtConvexShape
stepHeightnumber
upAxis?number

Returns

btKinematicCharacterController

Overrides

btActionInterface.constructor

Defined in

packages/ammo/ammo.d.ts:821

Methods

updateAction

updateAction(collisionWorld, deltaTimeStep): void

Parameters

NameType
collisionWorldbtCollisionWorld
deltaTimeStepnumber

Returns

void

Inherited from

btActionInterface.updateAction

Defined in

packages/ammo/ammo.d.ts:818


setUpAxis

setUpAxis(axis): void

Parameters

NameType
axisnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:822


setWalkDirection

setWalkDirection(walkDirection): void

Parameters

NameType
walkDirectionbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:823


setVelocityForTimeInterval

setVelocityForTimeInterval(velocity, timeInterval): void

Parameters

NameType
velocitybtVector3
timeIntervalnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:824


warp

warp(origin): void

Parameters

NameType
originbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:825


preStep

preStep(collisionWorld): void

Parameters

NameType
collisionWorldbtCollisionWorld

Returns

void

Defined in

packages/ammo/ammo.d.ts:826


playerStep

playerStep(collisionWorld, dt): void

Parameters

NameType
collisionWorldbtCollisionWorld
dtnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:827


setFallSpeed

setFallSpeed(fallSpeed): void

Parameters

NameType
fallSpeednumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:828


setJumpSpeed

setJumpSpeed(jumpSpeed): void

Parameters

NameType
jumpSpeednumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:829


setMaxJumpHeight

setMaxJumpHeight(maxJumpHeight): void

Parameters

NameType
maxJumpHeightnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:830


canJump

canJump(): boolean

Returns

boolean

Defined in

packages/ammo/ammo.d.ts:831


jump

jump(): void

Returns

void

Defined in

packages/ammo/ammo.d.ts:832


setGravity

setGravity(gravity): void

Parameters

NameType
gravitynumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:833


getGravity

getGravity(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:834


setMaxSlope

setMaxSlope(slopeRadians): void

Parameters

NameType
slopeRadiansnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:835


getMaxSlope

getMaxSlope(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:836


getGhostObject

getGhostObject(): btPairCachingGhostObject

Returns

btPairCachingGhostObject

Defined in

packages/ammo/ammo.d.ts:837


setUseGhostSweepTest

setUseGhostSweepTest(useGhostObjectSweepTest): void

Parameters

NameType
useGhostObjectSweepTestboolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:838


onGround

onGround(): boolean

Returns

boolean

Defined in

packages/ammo/ammo.d.ts:839


setUpInterpolate

setUpInterpolate(value): void

Parameters

NameType
valueboolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:840

Released under the MIT License