func_pendulum: Handle rotating around Z axis.
This commit is contained in:
parent
887f48a1ea
commit
2c4f602195
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,8 @@ void func_pendulum::customphysics(void)
|
|||
angles[2] = sin(m_flProgress);
|
||||
else if (spawnflags & FUNCPEND_YAXIS)
|
||||
angles[0] = sin(m_flProgress);
|
||||
else
|
||||
angles[1] = sin(m_flProgress);
|
||||
|
||||
angles *= m_flDistance;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue