mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-28 18:00:29 +01:00
Clear velocity only if it's not ignored
This commit is contained in:
1 file changed
+6
-2
@@ -1442,7 +1442,9 @@ void ScriptSlave::EndPath(Event *ev)
|
||||
|
||||
delete splinePath;
|
||||
splinePath = NULL;
|
||||
velocity = vec_zero;
|
||||
if (!ignorevelocity) {
|
||||
velocity = vec_zero;
|
||||
}
|
||||
if (!ignoreangles) {
|
||||
avelocity = vec_zero;
|
||||
}
|
||||
@@ -1639,7 +1641,9 @@ void ScriptSlave::FollowingPath(Event *ev)
|
||||
if ((splinePath->GetType() == SPLINE_CLAMP) && (splineTime > (splinePath->EndPoint() - 2))) {
|
||||
delete splinePath;
|
||||
splinePath = NULL;
|
||||
velocity = vec_zero;
|
||||
if (!ignorevelocity) {
|
||||
velocity = vec_zero;
|
||||
}
|
||||
if (!ignoreangles) {
|
||||
avelocity = vec_zero;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user