Corgi Engine  v8.8
MoreMountains.CorgiEngine.WeaponRecoilProperties Class Reference

A class used to store recoil properties, defining forces to apply on both ground and air, style, delay, and an associated feedback More...

Public Attributes

float RecoilForceGrounded = 10f
 The force to apply to the Weapon owner if it's grounded when this recoil is triggered. More...
 
float RecoilForceAirborne = 10f
 The force to apply to the Weapon owner if it's airborne when this recoil is triggered. More...
 
float RecoilAngleModifier = 0f
 The rotation (in degrees) to apply to the recoil force. More...
 
Vector2 DirectionMultiplier = Vector2.one
 Multipliers to apply to the x and y components of the recoil force. More...
 
DamageOnTouch.KnockbackStyles RecoilStyle = DamageOnTouch.KnockbackStyles.AddForce
 the chosen way to apply this recoil to the controller More...
 
float Delay = 0f
 the delay (in seconds) to apply before triggering the recoil More...
 
MMFeedbacks RecoilFeedback
 a feedback to play when this recoil triggers More...
 

Detailed Description

A class used to store recoil properties, defining forces to apply on both ground and air, style, delay, and an associated feedback

Member Data Documentation

◆ Delay

float MoreMountains.CorgiEngine.WeaponRecoilProperties.Delay = 0f

the delay (in seconds) to apply before triggering the recoil

◆ DirectionMultiplier

Vector2 MoreMountains.CorgiEngine.WeaponRecoilProperties.DirectionMultiplier = Vector2.one

Multipliers to apply to the x and y components of the recoil force.

◆ RecoilAngleModifier

float MoreMountains.CorgiEngine.WeaponRecoilProperties.RecoilAngleModifier = 0f

The rotation (in degrees) to apply to the recoil force.

◆ RecoilFeedback

MMFeedbacks MoreMountains.CorgiEngine.WeaponRecoilProperties.RecoilFeedback

a feedback to play when this recoil triggers

◆ RecoilForceAirborne

float MoreMountains.CorgiEngine.WeaponRecoilProperties.RecoilForceAirborne = 10f

The force to apply to the Weapon owner if it's airborne when this recoil is triggered.

◆ RecoilForceGrounded

float MoreMountains.CorgiEngine.WeaponRecoilProperties.RecoilForceGrounded = 10f

The force to apply to the Weapon owner if it's grounded when this recoil is triggered.

◆ RecoilStyle

DamageOnTouch.KnockbackStyles MoreMountains.CorgiEngine.WeaponRecoilProperties.RecoilStyle = DamageOnTouch.KnockbackStyles.AddForce

the chosen way to apply this recoil to the controller


The documentation for this class was generated from the following file: