Skip to content

Refactored project focusing on small scripts with specific functions. Scripts attached to an object are built to automatically reference one another, so gameplay can be built entirely in editor.

License

Notifications You must be signed in to change notification settings

SteveTaylorDev/modular-accelerometer-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Modular Accelerometer Control

Started as a refactoring of the accelerometer-control repo, and wanting to practise a more modular design, this project aimed to split systems up into more specialized components.

Physics Controller script was built to handle object forces, with customization options for gravity, input and rotation, along with "arcade" styled physics that apply movement calculations directly to the object transform, bypassing Unity's rigidbody forces system.

The project scope then expanded to focus on building specific, focused behaviour scripts, and allowing them to be attached to an object that contains the corresponding controller type. These scripts automatically reference the controller and apply the desired behaviour, such as setting orientation, gravity direction, or performing ground detection using raycasts.

This means that gameplay can be built for each object using these prebuilt behaviour scripts coupled with their respective controller, all through the Unity editor GUI.

Both a 2D and 3D gameplay application for these tools are included as seperate scenes in the Unity project.

About

Refactored project focusing on small scripts with specific functions. Scripts attached to an object are built to automatically reference one another, so gameplay can be built entirely in editor.

Topics

Resources

License

Stars

Watchers

Forks