Eye of the Nile Docs
Everything you need to know to get started!
Loading...
Searching...
No Matches
SwingingPendulumAxe Class Reference

Detailed Description

Handles the rotation of the swinging pendulum axe traps.

Documentation updated 12/22/2024

Author
Alexander Art

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 ()
 

Member Function Documentation

◆ Update()

void SwingingPendulumAxe.Update ( )
private

Member Data Documentation

◆ maxAngle

float SwingingPendulumAxe.maxAngle = 90f

In degrees, the maximum angle the pendulum will reach above the vertical. Symmetrical either side.

◆ pivotPoint

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.

◆ rotationSpeed

float SwingingPendulumAxe.rotationSpeed = 0.5f

How much time it takes the pendulum to swing one cycle back and forth.


The documentation for this class was generated from the following file: