Realistic Sniper and Ballistics
  • Welcome
  • Introduction
    • Feature List
    • Why/How is it used?
    • Quick Setup
  • Getting Started
    • Getting Started
    • Environment Properties
    • Bullet Properties
    • Object Poolers
    • Sniper and Ballistics System
    • Firing a Bullet
    • Listening to Hit Events
      • Spawning Particles on Hit
      • Hit Tags
    • Zero Distances
    • Wind Vector
    • Air Resistance
    • Spin Drift
    • Ballistic Surfaces - Penetration
    • Ballistic Surfaces - Ricochet
    • Bullet Time Effects
      • Target
      • Bullet
      • Firing with Bullet Time
      • Bullet Time Camera - Default
      • Writing your Own Bullet Time Camera
    • Dynamic Scope System
    • Incorporating Player
      • Player Movement Controller
      • Motion Controller
      • Camera Controller
      • Player With Weapon
    • Mobile Controls
    • Conclusion
  • API
    • API Welcome
    • Sniper and Ballistics System
    • Dynamic Scope System
    • Player Movement Controller
    • Motion Controller
    • Ballistic Surface
    • Environment Properties
    • Ballistics Utility
    • Bullet Time Utility
Powered by GitBook
On this page

Was this helpful?

  1. API

Ballistic Surface

Public Variables

Type

Name

Description

Access

bool

m_penetrationEnabled

Enables/disables penetration.

Read-Write

float

m_penetrationEnegryConsumptionPercent

Percent in [0,1] range defining how much of the bullet's energy will be consumed.

Read-Write

float

m_minEnergyToPenetrateInMetrics

Minimum energy to penetrate in metric units (Joules).

Read-Write

Vector2

m_penetrationDeflectionAngles

Penetrated bullet will deflect it's trajectory on x,y,z axes between this vector's x and y values.

Read-Write

bool

m_ricochetEnabled

Enables/disables ricochet.

Read-Write

float

m_ricochetEnegryConsumptionPercent

Percent in [0,1] range defining how much of the bullet's energy will be consumed.

Read-Write

float

m_minEnergyToRicochetInMetrics

Minimum energy to ricochet in metric units (Joules).

Read-Write

Vector2

m_ricochetDeflectionAngles

Ricocheted bullet will deflect it's trajectory on x,y,z axes between this vector's x and y values.

Read-Write

PreviousMotion ControllerNextEnvironment Properties

Last updated 3 years ago

Was this helpful?