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
e7400a4d
Commit
e7400a4d
authored
May 05, 2017
by
amandaghassaei
Browse files
scale fix
parent
6641164d
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.html
View file @
e7400a4d
...
...
@@ -167,7 +167,7 @@
vec3
deltaP
=
neighborLastPosition
-
lastPosition
+
nominalDist
;
float
deltaPLength
=
length
(
deltaP
);
deltaP
-=
deltaP
*
(
beamMeta
[
2
]
/
deltaPLength
);
nodeError
+=
deltaPLength
/
length
(
nominalDist
);
nodeError
+=
abs
(
deltaPLength
/
length
(
nominalDist
)
-
1.0
)
;
vec3
deltaV
=
neighborLastVelocity
-
lastVelocity
;
vec3
_force
=
deltaP
*
beamMeta
[
0
]
+
deltaV
*
beamMeta
[
1
];
...
...
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