Skip to content

Commit

Permalink
fixed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamad11Dab committed Oct 13, 2023
1 parent b89a3a5 commit 0d169fb
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions source/core/src/main/com/csse3200/game/rendering/CameraShaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@
Loosely based on 'Mastering LibGDX Game Development' - Chapter 9 - Camera Shake
Book: https://www.amazon.com/Mastering-LibGDX-Game-Development-Patrick/dp/1785289365
Changes/Enhancements:
- All variables now use Vector3 (for eventual 3-axis camera shaking)
- Minimum shake radius is now configurable
- Radius fall off factor (was hard coded to 0.9f) is now configurable
- added validation checks to parameters
- You need to pass the camera in constructor, instead of position.x/y
- added update() method for updating camera position
- only compute new shake camera position every 1/60th of a second
at most to accommodate fast refresh rates (to save GPU cycles)
- added resetAndReconfigure(...) method to allow parameter changes
- renamed variables so to not look like python
*/

public class CameraShaker {
Expand Down

0 comments on commit 0d169fb

Please sign in to comment.