Photon Bolt Engine API 1.3

Properties | List of all members
Photon.Bolt.LagCompensation.BoltHitboxBody Class Reference

Defines a body of hitboxes to be tracked More...

Inheritance diagram for Photon.Bolt.LagCompensation.BoltHitboxBody:

Properties

BoltHitbox[] hitboxes [get, set]
 An array of hitbox components that compose this body More...
 
BoltHitbox proximity [get, set]
 A hitbox which should contain all other hitboxes on this entity More...
 

Detailed Description

Defines a body of hitboxes to be tracked

Example: Adding a hitbox body to a character pre-configured with BoltHitbox components

void AddHitboxBody(BoltEntity entity) {
BoltHitbox[] hitboxes = entity.GetComponentsInChildren<BoltHitbox>();
BoltHitboxBody body = entity.AddComponent<BoltHitboxBody>();
body.hitboxes = hitboxes;
}

Property Documentation

◆ hitboxes

BoltHitbox [] Photon.Bolt.LagCompensation.BoltHitboxBody.hitboxes
getset

An array of hitbox components that compose this body

Example: Finding all hitbox components on an entity and adding them to a hitbox body

void AddHitboxBody(BoltEntity entity) {
BoltHitbox[] hitboxes = entity.gameObject.GetComponentsInChildren<BoltHitbox>();
BoltHitboxBody body = entity.AddComponent<BoltHitboxBody>();
body.hitboxes = hitboxes;
}

◆ proximity

BoltHitbox Photon.Bolt.LagCompensation.BoltHitboxBody.proximity
getset

A hitbox which should contain all other hitboxes on this entity

Photon.Bolt.LagCompensation.BoltHitboxBody.hitboxes
BoltHitbox[] hitboxes
An array of hitbox components that compose this body
Definition: BoltHitboxBody.cs:68