Photon Bolt Engine API 1.3

Classes | Enumerations
Photon.Bolt.LagCompensation Namespace Reference

Classes

class  BoltHitbox
 Defines one hitbox on a BoltHitboxBody More...
 
class  BoltHitboxBody
 Defines a body of hitboxes to be tracked More...
 
class  BoltHitboxBodySnapshot
 
class  BoltHitboxWorldSnapshot
 
class  BoltPhysics
 Responsible by registering snapshots of the world hitboxes and perform lag compensated physics checks like Raycasts and Sphere Overlap
 
struct  BoltPhysicsHit
 Describes a hit to a BoltHitbox on a BoltHitboxBody More...
 
class  BoltPhysicsHits
 Container for a group of BoltPhysicsHits More...
 

Enumerations

enum  BoltHitboxShape { BoltHitboxShape.Box, BoltHitboxShape.Sphere }
 What type of shape to use in a bolt hitbox More...
 
enum  BoltHitboxType {
  BoltHitboxType.Unknown, BoltHitboxType.Proximity, BoltHitboxType.Body, BoltHitboxType.Head,
  BoltHitboxType.Throat, BoltHitboxType.Shoulder, BoltHitboxType.UpperArm, BoltHitboxType.Forearm,
  BoltHitboxType.Hand, BoltHitboxType.Chest, BoltHitboxType.Stomach, BoltHitboxType.Pelvis,
  BoltHitboxType.Buttocks, BoltHitboxType.Thigh, BoltHitboxType.Knee, BoltHitboxType.Leg,
  BoltHitboxType.Foot, BoltHitboxType.Elbow, BoltHitboxType.Ankle, BoltHitboxType.Wrist,
  BoltHitboxType.Finger, BoltHitboxType.Heel
}
 The body area represented by a bolt hitbox More...
 

Enumeration Type Documentation

◆ BoltHitboxShape

What type of shape to use in a bolt hitbox

Example: Sorting the hitboxes in a body based on shape.

void ConfigureHitboxes(BoltHitboxBody body) {
foreach(BoltHitbox hitbox in body.hitboxes) {
switch(hitbox.hitboxShape) {
case BoltHitboxShape.Sphere: ConfigureSphere(hitbox); break;
case BoltHitboxShape.Box: ConfigureBox(hitbox); break;
}
}
}
Enumerator
Box 
Sphere 

◆ BoltHitboxType

The body area represented by a bolt hitbox

Example: Modifying a base damage value depending on the area of the hit.

float CalculateDamage(BoltHitbox hit, float baseDamage) {
switch(hit.hitboxType) {
case BoltHitboxType.Head: return 2.0f * baseDamage;
case BoltHitboxType.Leg:
case BoltHitboxType.UpperArm: return 0.7f * baseDamage;
default: return baseDamage;
}
}
Enumerator
Unknown 
Proximity 
Body 
Head 
Throat 
Shoulder 
UpperArm 
Forearm 
Hand 
Chest 
Stomach 
Pelvis 
Buttocks 
Thigh 
Knee 
Leg 
Foot 
Elbow 
Ankle 
Wrist 
Finger 
Heel 
Photon.Bolt.LagCompensation.BoltHitboxShape
BoltHitboxShape
What type of shape to use in a bolt hitbox
Definition: BoltHitboxShape.cs:22
Photon.Bolt.LagCompensation.BoltHitboxType
BoltHitboxType
The body area represented by a bolt hitbox
Definition: BoltHitboxType.cs:24