A collection of utility scripts for Unity 5 .
Unity is a flexible and powerful development platform for creating multi-platform 3D and 2D games and interactive experiences.
Artificial Intelligence
Name
Description
2D
3D
simplefollow.js
A very simple, flawed “follow the player’s transform” AI script. Because this uses Transform.Position, the object will simply pass through obstacles. Use script below for better results.
✅
✅
simplechase.js
A simple “follow the target” AI script using a Character Controller and applied forces. Collides with obstacles, but no logic for pathfinding yet.
✅
✅
Animation
Name
Description
2D
3D
smoothfollow2d.js
A two-axis smooth follow camera script, can be used for (X,Z) or (X,Y) movement.
✅
✅
FreeFlightCamera.js
Fly through the scene using WSAD (or arrows) and mouse.
✅
Name
Description
2D
3D
[topdowncontrols.js
](Character Control/topdowncontrols.js)
A script used to control the 3D Character Controller script, configured for use in top-down gameplay.
✅
[sidescrollcontrols.js
](Character Control/sidescrollcontrols.js)
A script used to control the 3D Character Controller script, configured for use in sidescrolling gameplay.
✅
Sound