Skip to content

Kitsuri-Studios/UGPPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity General Purpose Player Controller

Description

A character controller for Unity Game Engine providing basic mechanism for first person camera based player setup in the editor.

Installation

Drag and drop the Runtime folder into your project.

Features

  1. Walking with adjustable speed
  2. First person camera movement
  3. Basic Physics
  4. Touch Controller
  5. Sample joystick background and handle for testing

How To Setup?

Following is a basic First Person Player Character Setup:

Right Click on the Hierarchy Tab in the editor and create an empty GameObject. You can name this as "Player".

image

Select the "Player" Empty GameObject we just created and assign a CharacterController Component from the Inspector Tab and also assign First Person Character Setup script to it.

image
Your Inspector Tab will look like this.



Now Create another Empty GameObject in the hirerchy parenting to the "Player" GameObject. Name this new GameObject as "CameraHolder".

image

Next create a Camera as the child of "CameraHolder" we just created

image

Create a two UI images in the scene, you can name them as JoystickBackground and JoystickHandle and allign them accordinng to yourself.

image

After Applying the script do the following:

In the inspector, assign the camera to "Camera Transform" assign the JoystickBackground to "Joystick"

Now you can adjust the Move Speed, Gravity, Look Senstivity and MaxLookAngle according to your preference

image

License

Apache - 2.0. See LICENSE for more details.