Class: btKinematicCharacterController
Ammo.btKinematicCharacterController
Hierarchy
↳
btKinematicCharacterController
Constructors
Methods
- updateAction
- setUpAxis
- setWalkDirection
- setVelocityForTimeInterval
- warp
- preStep
- playerStep
- setFallSpeed
- setJumpSpeed
- setMaxJumpHeight
- canJump
- jump
- setGravity
- getGravity
- setMaxSlope
- getMaxSlope
- getGhostObject
- setUseGhostSweepTest
- onGround
- setUpInterpolate
Constructors
constructor
• new btKinematicCharacterController(ghostObject
, convexShape
, stepHeight
, upAxis?
): btKinematicCharacterController
Parameters
Name | Type |
---|---|
ghostObject | btPairCachingGhostObject |
convexShape | btConvexShape |
stepHeight | number |
upAxis? | number |
Returns
btKinematicCharacterController
Overrides
Defined in
Methods
updateAction
▸ updateAction(collisionWorld
, deltaTimeStep
): void
Parameters
Name | Type |
---|---|
collisionWorld | btCollisionWorld |
deltaTimeStep | number |
Returns
void
Inherited from
btActionInterface.updateAction
Defined in
setUpAxis
▸ setUpAxis(axis
): void
Parameters
Name | Type |
---|---|
axis | number |
Returns
void
Defined in
setWalkDirection
▸ setWalkDirection(walkDirection
): void
Parameters
Name | Type |
---|---|
walkDirection | btVector3 |
Returns
void
Defined in
setVelocityForTimeInterval
▸ setVelocityForTimeInterval(velocity
, timeInterval
): void
Parameters
Name | Type |
---|---|
velocity | btVector3 |
timeInterval | number |
Returns
void
Defined in
warp
▸ warp(origin
): void
Parameters
Name | Type |
---|---|
origin | btVector3 |
Returns
void
Defined in
preStep
▸ preStep(collisionWorld
): void
Parameters
Name | Type |
---|---|
collisionWorld | btCollisionWorld |
Returns
void
Defined in
playerStep
▸ playerStep(collisionWorld
, dt
): void
Parameters
Name | Type |
---|---|
collisionWorld | btCollisionWorld |
dt | number |
Returns
void
Defined in
setFallSpeed
▸ setFallSpeed(fallSpeed
): void
Parameters
Name | Type |
---|---|
fallSpeed | number |
Returns
void
Defined in
setJumpSpeed
▸ setJumpSpeed(jumpSpeed
): void
Parameters
Name | Type |
---|---|
jumpSpeed | number |
Returns
void
Defined in
setMaxJumpHeight
▸ setMaxJumpHeight(maxJumpHeight
): void
Parameters
Name | Type |
---|---|
maxJumpHeight | number |
Returns
void
Defined in
canJump
▸ canJump(): boolean
Returns
boolean
Defined in
jump
▸ jump(): void
Returns
void
Defined in
setGravity
▸ setGravity(gravity
): void
Parameters
Name | Type |
---|---|
gravity | number |
Returns
void
Defined in
getGravity
▸ getGravity(): number
Returns
number
Defined in
setMaxSlope
▸ setMaxSlope(slopeRadians
): void
Parameters
Name | Type |
---|---|
slopeRadians | number |
Returns
void
Defined in
getMaxSlope
▸ getMaxSlope(): number
Returns
number
Defined in
getGhostObject
▸ getGhostObject(): btPairCachingGhostObject
Returns
Defined in
setUseGhostSweepTest
▸ setUseGhostSweepTest(useGhostObjectSweepTest
): void
Parameters
Name | Type |
---|---|
useGhostObjectSweepTest | boolean |
Returns
void
Defined in
onGround
▸ onGround(): boolean
Returns
boolean
Defined in
setUpInterpolate
▸ setUpInterpolate(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void