![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
Handles the rotation of the swinging pendulum axe traps.
Documentation updated 12/22/2024
Public Attributes | |
GameObject | pivotPoint |
The point that the trap will rotate about. This should be set to the "Pivot" which is part of the trap's prefab. | |
float | rotationSpeed = 0.5f |
How much time it takes the pendulum to swing one cycle back and forth. | |
float | maxAngle = 90f |
In degrees, the maximum angle the pendulum will reach above the vertical. Symmetrical either side. | |
Private Member Functions | |
void | Update () |
|
private |
float SwingingPendulumAxe.maxAngle = 90f |
In degrees, the maximum angle the pendulum will reach above the vertical. Symmetrical either side.
GameObject SwingingPendulumAxe.pivotPoint |
The point that the trap will rotate about. This should be set to the "Pivot" which is part of the trap's prefab.
float SwingingPendulumAxe.rotationSpeed = 0.5f |
How much time it takes the pendulum to swing one cycle back and forth.