Skip to content

Hotrian/Reddit_41p5yn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit_41p5yn

Testing an endless runner's camera.

WebGL link(Recommended)

Webplayer link

Runs great on Win32 and WebGL, though the standard Webplayer has a tiny stutter when you die.

It seems that the Webplayer doesn't zero velocity when colliding before triggering OnCollision, so that there is a slight stutter as the camera doesn't take control until the following frame.

Incase you are unable to load the scene, it consists of only three GameObjects setup as such:

Player

Camera

Bounds

Finally, there is a prefab that is setup as such:

Prefab