interactive objects integration
This commit is contained in:
@@ -23,9 +23,10 @@ export class CharacterControls {
|
||||
this.currentAction = currentAction
|
||||
this.animationsMap[currentAction].play()
|
||||
|
||||
this.characterController = engine.phy.world.createCharacterController(0.1);
|
||||
this.characterController = engine.physics.world.createCharacterController(0.1);
|
||||
this.characterController.setUp({x:0, y:1, z:0});
|
||||
po.rigidBody.setTranslation(this.model.position)
|
||||
po.characterController = this.characterController;
|
||||
// this.characterController.enableSnapToGround(0.5);
|
||||
// // Don’t allow climbing slopes larger than 45 degrees.
|
||||
// this.characterController.setMaxSlopeClimbAngle(45 * Math.PI / 180);
|
||||
|
||||
Reference in New Issue
Block a user