|
|
@ -928,10 +928,9 @@ export default class PtrObject extends THREE.Object3D { |
|
|
this.viewport.ammoModel.destroy(sp) |
|
|
this.viewport.ammoModel.destroy(sp) |
|
|
keepSpeed = new this.viewport.ammoModel.btVector3(velocity.x(), velocity.y(), velocity.z()) |
|
|
keepSpeed = new this.viewport.ammoModel.btVector3(velocity.x(), velocity.y(), velocity.z()) |
|
|
} |
|
|
} |
|
|
|
|
|
} else if (currentPhase == 'decelerate') { |
|
|
|
|
|
currentPhase = 'accelerate' |
|
|
} |
|
|
} |
|
|
// else if (currentPhase == 'decelerate') {
|
|
|
|
|
|
// currentPhase = 'accelerate'
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// 运动阶段控制
|
|
|
// 运动阶段控制
|
|
|
switch (currentPhase) { |
|
|
switch (currentPhase) { |
|
|
|