1. 修正了相机在变焦时不能保持在目标中心的问题
2. 增加检查,以确保碰撞器被触发时enabled也开启
This commit is contained in:
9
source/src/Utils/WebGLUtils.ts
Normal file
9
source/src/Utils/WebGLUtils.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
class WebGLUtils {
|
||||
/**
|
||||
* 获取webgl context
|
||||
*/
|
||||
public static getContext(){
|
||||
const canvas = document.getElementsByTagName('canvas')[0];
|
||||
return canvas.getContext('2d');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user