2D Shooter Bullet and Weapon System for Unity 3.0.0
Loading...
Searching...
No Matches
BulletComponent Struct Reference

ECS component holding bullet movement and collision data. More...

Inheritance diagram for BulletComponent:

Public Attributes

float Speed
float DirectionAngle
float BulletXPosition
float BulletYPosition
float Amplitude
float FrequencyIncrement
float Frequency
bool CanRicochet
 Whether this bullet can ricochet (rolled at spawn/hit).
float RicochetChancePercent
 Chance to ricochet (0-100), used when re-rolling after a ricochet.

Detailed Description

ECS component holding bullet movement and collision data.

Used with DOTS for high-performance bullet simulation.

Member Data Documentation

◆ Amplitude

float BulletComponent.Amplitude

◆ BulletXPosition

float BulletComponent.BulletXPosition

◆ BulletYPosition

float BulletComponent.BulletYPosition

◆ CanRicochet

bool BulletComponent.CanRicochet

Whether this bullet can ricochet (rolled at spawn/hit).

◆ DirectionAngle

float BulletComponent.DirectionAngle

◆ Frequency

float BulletComponent.Frequency

◆ FrequencyIncrement

float BulletComponent.FrequencyIncrement

◆ RicochetChancePercent

float BulletComponent.RicochetChancePercent

Chance to ricochet (0-100), used when re-rolling after a ricochet.

◆ Speed

float BulletComponent.Speed

The documentation for this struct was generated from the following file:
  • C:/git/2dshooterweaponsystem/Assets/2DShooterWeaponSystem/Scripts/Dots/BulletComponent.cs