obstacle avoidance
This commit is contained in:
@@ -79,11 +79,11 @@ class MazeObject {
|
||||
)
|
||||
left.rigidBody.setRotation(quat, true)
|
||||
|
||||
// let right = engine.phy.add(
|
||||
// {position: room.localToWorld(new Vector3(-context.tubeSize / 2, 0.6, offsetZ/2))},
|
||||
// 'fixed', false, undefined, 'cuboid',{ width: 0.01, height:1, depth:offsetZ/2 }
|
||||
// )
|
||||
// right.rigidBody.setRotation(quat, true)
|
||||
let right = engine.phy.add(
|
||||
{position: room.localToWorld(new Vector3(-context.tubeSize / 2, 0.6, offsetZ/2))},
|
||||
'fixed', false, undefined, 'cuboid',{ width: 0.01, height:1, depth:offsetZ/2 }
|
||||
)
|
||||
right.rigidBody.setRotation(quat, true)
|
||||
|
||||
|
||||
if (def.type == 'area') {
|
||||
|
||||
Reference in New Issue
Block a user