Skip to content

jeanhadrien/unity-rewind-fps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rewind FPS

Just a simple fps with a rewind function.

Scripts

  • ItsRewindTime : When the user right clicks, it rewinds associated objects positions and rotations for up to 15 seconds.
  • myController : Moves character in space.
  • myFPSCam : First person camera controls with mouse.
  • myGun : Uses Raycasts and particle effects to simulate shooting, applies forces to hit objects.

Setup

Click "Fix Now" in the NormalMap settings window that will popup.

Open Scenes > Scene, play around with the shooting and the rewind function (right-click).

You can customize bullet force, fire-rate, character speed, mouse sensitivity, recoil.

Notice how the green character isn't affected by our shooting. This is because we use raycasts and layers.

Improvements

  • Fix rewind levitation bug
  • Have a custom rewind speed
  • Being able to jump lol
AK-47 model : http://devassets.com/assets/modern-weapons/
Recoil script : https://www.youtube.com/watch?v=p9t044U4i5E

TP2 Unity Janvier 2020 - Jean-Hadrien DAMAY

About

TP2 Unity ISEN 2020

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published