-
Notifications
You must be signed in to change notification settings - Fork 24
Player.ObjectSetup
This setup assumes a FPS player setup. You can position these how you see fit. Have an arms only object and the full body object as well. The full body will be the "shadow" but the arms will be visible. The "arms" should be the root gameobject:
- FPSArmsOnly = "Root Object"
- CameraHolder = "Camera Object"
- PlayerShadow = "Shadow Object"
To make the shadow effect you need to go to the mesh renderer on the gameobject and select "Shadows Only".
Tag: Player
Root Object setup (According to the picture example this is "FPSArmsOnly"):
To get an example of what each of these scripts do be sure to look in the scripts docs or follow these links:
- Animator Setup
- Breathing Controller
- Health
- Mouse Look
- Movement Controller
- FootStepKeyFrame
- AnimController
For example setups and in-depth details about these scripts follow the links or look at the Script Docs.
Camera Hierarchy
Root Camera Object setup
Tag: CameraHolder
You really only need 2 child objects of the Camera Object. One should be for the actual camera and another for the flashlight.
Child Camera Object (Object that holds the camera):
Tag: PlayerCamera
This also has a custom Animation object (completely optional). This is to produce a slight camera sway that gives a bit more life to your camera.
This is important to note that this is using the Legacy system. Basically this is an animation that I made myself. This is simple to make and I leave this to your discretion.
Flashlight Object:
Tag: PlayerFlashlight
For specific setups and how to use each script follow the links or look in the Scripts Docs.
- HeadBobber
- MouseLook
- FlashLight
- CameraShake
- CameraController - Legacy. No Longer needed.
- CameraMotionBlur
- Antialiasing
- SunShafts
- VignetteAndChromaticAberration
The following is a list of github repositories that made all of this possible:
delta patches: https://github.com/OctopusDeploy/Octodiff
.net 4 implemented in Monodevelop: https://github.com/mono/mono
Tuples In Unity: https://gist.github.com/michaelbartnett/5652076
Octodiff: https://github.com/OctopusDeploy/Octodiff
Input Manager: https://github.com/daemon3000/InputManager