新增MathHelper.toInt

This commit is contained in:
YHH
2022-03-12 09:13:06 +08:00
parent 131df181e6
commit 5dca337b92
7 changed files with 22 additions and 18 deletions

View File

@@ -146,8 +146,6 @@ module es {
* @param layerMask
*/
public static linecast(start: Vector2, end: Vector2, layerMask: number = this.allLayers, ignoredColliders: Set<Collider> = null): RaycastHit {
this._hitArray[0].reset();
this.linecastAll(start, end, this._hitArray, layerMask);
this._hitArray[0].reset();
Physics.linecastAll(
start,
@@ -156,7 +154,7 @@ module es {
layerMask,
ignoredColliders
);
return this._hitArray[0].clone();
return this._hitArray[0];
}
/**