新增verlet物理引擎(实验性)
This commit is contained in:
@@ -227,15 +227,11 @@ module es {
|
||||
* @param value
|
||||
*/
|
||||
public divide(value: Vector2): Vector2 {
|
||||
this.x /= value.x;
|
||||
this.y /= value.y;
|
||||
return this;
|
||||
return new Vector2(this.x / value.x, this.y / value.y);
|
||||
}
|
||||
|
||||
public divideScaler(value: number): Vector2 {
|
||||
this.x /= value;
|
||||
this.y /= value;
|
||||
return this;
|
||||
return new Vector2(this.x / value, this.y / value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user