Help Implementation

This commit is contained in:
Luis Fernando Molina committed 2020-03-10 13:00:40 +01:00
1 parent c174ae57b1
commit 35e41271ed
8 files changed
+47 -14

No files matched your search

+1 -1
View File
@@ -209,7 +209,7 @@ function newFrame () {
}
/* Now we check if the resulting point is whin the current Frame. */
if (isNaN(checkPoint.x) || isNaN(checkPoint.y)) { return false }
if (thisObject.type === 'Circle') {
let distance = Math.sqrt(Math.pow(thisObject.position.x - point.x, 2) + Math.pow(thisObject.position.y - point.y, 2))