TopDown Engine
v3.6
|
Add this zone to a trigger collider and it'll automatically trigger a dash on your 3D character on entry More...
Public Member Functions | |
virtual void | SetColliderTrigger (bool status) |
Sets this collider's trigger off or on More... | |
Public Attributes | |
Collider | CoverObstacleCollider |
the collider of the obstacle you want to dash over More... | |
List< DashZone3D > | ExitDashZones |
the (optional) exit dash zone on the other side of the collider More... | |
float | DashDistance = 3f |
the distance of the dash triggered when entering the zone More... | |
float | DashDuration |
the duration of the dash More... | |
AnimationCurve | DashCurve = new AnimationCurve(new Keyframe(0f, 0f), new Keyframe(1f, 1f)) |
the curve to apply to the dash More... | |
float | MaxFacingAngle = 90f |
the max angle at which the character should approach the obstacle for the dash to happen More... | |
float | TriggerResetDuration = 1f |
the duration in seconds before re-enabling all triggers in the zone More... | |
bool | DashAuthorized = true |
if this is false, the dash won't happen More... | |
Protected Member Functions | |
virtual void | Start () |
On start we initialize our zone More... | |
virtual void | Initialization () |
Grabs collider and readies the wait for seconds More... | |
virtual void | OnTriggerEnter (Collider collider) |
On trigger enter, we ready our dash More... | |
virtual void | OnTriggerStay (Collider collider) |
On trigger enter, we ready our dash More... | |
virtual void | TestForDash (Collider collider) |
Makes sure the collider matches our specs, and the angle is right. If yes, triggers the dash sequence More... | |
virtual IEnumerator | DashSequence () |
Sets the dash properties, triggers the dash, and resets everything afterwards More... | |
Protected Attributes | |
CharacterDash3D | _characterDash3D |
CharacterHandleWeapon | _characterHandleWeapon |
WeaponAim3D | _weaponAim3D |
CharacterOrientation3D | _characterOrientation3D |
CharacterOrientation3D.RotationModes | _rotationMode |
WeaponAim.AimControls | _weaponAimControl |
Character | _character |
Collider | _collider |
WaitForSeconds | _dashWaitForSeconds |
WaitForSeconds | _triggerResetForSeconds |
Vector3 | _direction1 |
Vector3 | _direction2 |
bool | _dashInProgress = false |
Add this zone to a trigger collider and it'll automatically trigger a dash on your 3D character on entry
|
protectedvirtual |
Sets the dash properties, triggers the dash, and resets everything afterwards
|
protectedvirtual |
Grabs collider and readies the wait for seconds
|
protectedvirtual |
On trigger enter, we ready our dash
collider |
|
protectedvirtual |
On trigger enter, we ready our dash
collider |
|
virtual |
Sets this collider's trigger off or on
status |
|
protectedvirtual |
On start we initialize our zone
|
protectedvirtual |
Makes sure the collider matches our specs, and the angle is right. If yes, triggers the dash sequence
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Collider MoreMountains.TopDownEngine.DashZone3D.CoverObstacleCollider |
the collider of the obstacle you want to dash over
bool MoreMountains.TopDownEngine.DashZone3D.DashAuthorized = true |
if this is false, the dash won't happen
AnimationCurve MoreMountains.TopDownEngine.DashZone3D.DashCurve = new AnimationCurve(new Keyframe(0f, 0f), new Keyframe(1f, 1f)) |
the curve to apply to the dash
float MoreMountains.TopDownEngine.DashZone3D.DashDistance = 3f |
the distance of the dash triggered when entering the zone
float MoreMountains.TopDownEngine.DashZone3D.DashDuration |
the duration of the dash
List<DashZone3D> MoreMountains.TopDownEngine.DashZone3D.ExitDashZones |
the (optional) exit dash zone on the other side of the collider
float MoreMountains.TopDownEngine.DashZone3D.MaxFacingAngle = 90f |
the max angle at which the character should approach the obstacle for the dash to happen
float MoreMountains.TopDownEngine.DashZone3D.TriggerResetDuration = 1f |
the duration in seconds before re-enabling all triggers in the zone