Skip to content

Commit

Permalink
Constraint WIP + Example update
Browse files Browse the repository at this point in the history
  • Loading branch information
dukuo committed Mar 8, 2020
1 parent 56e737f commit 4ace189
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
4 changes: 1 addition & 3 deletions examples/spark/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/spark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"start": "npm run dev"
},
"dependencies": {
"physar": "^0.1.9-0",
"physar": "file:../..",
"short-uuid": "^3.1.1",
"webpack": "^4.41.6"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/spark/physar_examples/scripts/script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/spark/physar_examples/scripts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"compilerOptions":{"baseUrl":"C:/Users/Dilip/AppData/Local/Temp/305780ed8f2897942b891e144bb4e736657/skylight-typedefs","allowJs":true,"checkJs":true,"outDir":"C:/Users/Dilip/AppData/Local/Temp/305780ed8f2897942b891e144bb4e736657/skylight-typedefs/out-dir"},"include":["*.js"]}
2 changes: 1 addition & 1 deletion examples/spark/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ physar.createObject(plane, 'ground', groundProps)
const sphereID = physar.createObject(sphere, 'sphere', sphereProps)
const boxID = physar.createObject(cube, 'box', cubeProps)

const constraint = physar.addConstrait(sphereID, boxID)
const constraint = physar.addConstraint('point', sphereID, boxID)
physar.start()
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export default class Physar {

resumeConstraint(id) {
const c = this.find('constraint', id)
const [id, constraint] = c
const constraint = c.constraint

if(c && c.isActive == false) {

Expand Down

0 comments on commit 4ace189

Please sign in to comment.