![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Aimer for grapple which can shoot up or at 45 degrees (Left or Right). More...
Public Member Functions | |
override Vector2 | GetAimDirection (Component character) |
Gets the aim direction. More... | |
override Vector2 | GetAimOffset (IMob character) |
Offsets the projectile from character position. More... | |
Public Attributes | |
Vector2 | offsetFortyFive |
How far offset is the bullet from the character position when throwing at 45. More... | |
float | speedAffectsAngleFactor |
When throwing at 45, how much does the character speed affect the angle? More... | |
![]() | |
ProjectileAimingTypes | aimType |
How is the projectile aimed? More... | |
Vector2 | offset |
How far offset is the bullet from the character position. More... | |
bool | flipOffsets = true |
If true the projectile offset flips with direction change. If false it doesn't. More... | |
Vector2 | angle |
What is the default angle to shoot at when facing right (used for ANGLED type shooting only). More... | |
bool | canAimWhenCrouched |
If true aiming function as normal when crouched. If false crouch shooting is always in facing direction. More... | |
Vector2 | crouchOffset |
Alternate offset to use when crouching. More... | |
Additional Inherited Members | |
![]() | |
virtual Vector2 | MouseAimDirection (Component character) |
Get aim direction based on character position relative to mouse More... | |
virtual Vector2 | EightWayAimDirection (Component character) |
Get aim direction based on eight way directions using character input. More... | |
virtual Vector2 | SixWayAimDirection (Component character) |
Get aim direction based on six way directions using character input. More... | |
virtual Vector2 | FourWayAimDirection (Component character) |
Get aim direction based on four way directions using character input. More... | |
Aimer for grapple which can shoot up or at 45 degrees (Left or Right).
|
virtual |
|
virtual |
Offsets the projectile from character position.
Reimplemented from PlatformerPro.ProjectileAimer.
Vector2 PlatformerPro.GrappleAimer.offsetFortyFive |
How far offset is the bullet from the character position when throwing at 45.
float PlatformerPro.GrappleAimer.speedAffectsAngleFactor |
When throwing at 45, how much does the character speed affect the angle?