interactive objects integration

This commit is contained in:
2025-11-04 16:41:42 +02:00
parent 429ab07db5
commit 4236927537
13 changed files with 178 additions and 243 deletions
+2 -1
View File
@@ -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);
// // Dont allow climbing slopes larger than 45 degrees.
// this.characterController.setMaxSlopeClimbAngle(45 * Math.PI / 180);