-
Notifications
You must be signed in to change notification settings - Fork 7
Using the Emerald AI Camera Shake System
Emerald AI includes a camera shake system that will fade in and out a shaking effect. The intensity and duration of this can be adjusted. The camera shake system is a separate system from the Emerald AI system.
In order to use the camera shake system, first you will need to drag and drop the Camera Shake System prefab into your scene. This is located under Emerald AI>Prefabs>Camera Shake.
Next, apply your camera to the Camera Transform of the Camera Shake System.
The camera shake system is now setup and ready to be used. In order for it to trigger a camera shake, you must use a certain line of code. This line of code does everything for you. All you have to do is specify the ShakeTime (the first parameter) and ShakeAmount (the second parameter).
You can use a camera shake effect for wherever you want such as for an event, for critical hits, regular hits, quests, etc. To do this, you simple use the CameraShake function like below. Note: The Camera Shake System must be in your scene, with a Camera Transform applied, in order to avoid any errors.
EmeraldAI.CameraShake.Instance.ShakeCamera(0.32f, 0.35f);
An example of the camera shake effect that happens when the player has a critical hit towards the enemy.
- Version 3.0 Upgrade Guide
- Creating an AI through the Setup Manager
- Setting up an AI's Animations
- Creating Attack Animation Events
- Creating an AI Ability Object
- Applying an AI's Head Transform
- Applying an AI's Ranged Attack Transform
- Setting up an AI's Factions
- Setting up an AI's Layers and Tags
- Using the Combat Text System
- Setting up an AI's Optimization Settings
- Setting up an AI with Ragdoll Deaths
- Creating a Shooter AI
- Creating a Floating or Hovering AI
- Using Emerald AI's Built in Object Pool
- Using the Emerald AI Needs System
- Using Emerald AI with Crux Spawner
- Using Location Based Damage
- Using the Emerald AI Camera Shake System
- Setting up an Equippable and Unequippable Weapon
- Setting up Ranged Weapon Hand IK
- Using the Target Position Modifier
- Using the Built-in IK System
- Setting up Non-AI Targets
- Setting up Custom Damage with Emerald AI
- Using the Sound Detector System
- Setting up the Built in Health Bars and Name Text
- Behaviors and Confidence Levels
- Wander Types and Movement
- Using Factions and Faction Manager
- Detection Type and Target Picking
- Adjusting an AI Hit's Transform
- Enabling an AI's Debugging Tools