Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
OrigamiSimulator
Commits
39d05ea4
Commit
39d05ea4
authored
Feb 25, 2017
by
amandaghassaei
Browse files
eod
parent
005bdf4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/controls.js
View file @
39d05ea4
...
@@ -46,22 +46,22 @@ function initControls(globals){
...
@@ -46,22 +46,22 @@ function initControls(globals){
globals
.
schematicVisible
=
val
;
globals
.
schematicVisible
=
val
;
});
});
setSliderInput
(
"
#axialStiffness
"
,
globals
.
axialStiffness
,
1
,
1000
,
1
,
function
(
val
){
setSliderInput
(
"
#axialStiffness
"
,
globals
.
axialStiffness
,
1
00
,
1000
,
1
,
function
(
val
){
globals
.
axialStiffness
=
val
;
globals
.
axialStiffness
=
val
;
globals
.
dynamicModel
.
updateMaterials
();
globals
.
dynamicModel
.
updateMaterials
();
});
});
setSliderInput
(
"
#creaseStiffness
"
,
globals
.
creaseStiffness
,
0
,
100
0
,
1
,
function
(
val
){
setSliderInput
(
"
#creaseStiffness
"
,
globals
.
creaseStiffness
,
0
,
100
,
1
,
function
(
val
){
globals
.
creaseStiffness
=
val
;
globals
.
creaseStiffness
=
val
;
globals
.
dynamicModel
.
updateCreasesMeta
();
globals
.
dynamicModel
.
updateCreasesMeta
();
});
});
setSliderInput
(
"
#panelStiffness
"
,
globals
.
panelStiffness
,
0
,
100
0
,
1
,
function
(
val
){
setSliderInput
(
"
#panelStiffness
"
,
globals
.
panelStiffness
,
0
,
100
,
1
,
function
(
val
){
globals
.
panelStiffness
=
val
;
globals
.
panelStiffness
=
val
;
globals
.
dynamicModel
.
updateCreasesMeta
();
globals
.
dynamicModel
.
updateCreasesMeta
();
});
});
setSlider
(
"
#damping
"
,
globals
.
percentDamping
,
0
,
1
,
0.01
,
function
(
val
){
setSlider
(
"
#damping
"
,
globals
.
percentDamping
,
0
.05
,
1
,
0.01
,
function
(
val
){
globals
.
percentDamping
=
val
;
globals
.
percentDamping
=
val
;
},
function
(){
},
function
(){
globals
.
dynamicModel
.
updateMaterials
();
globals
.
dynamicModel
.
updateMaterials
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment