book_4_sparkGenerated
code_blocksInput

Description

The Shape property of the ManualHitbox class specifies the geometric shape of the hitbox. This property determines how the hitbox is represented in the game world, affecting collision detection and interaction with other objects.

Usage

To use the Shape property, you need to set it to one of the predefined shapes available in the HitboxShape enumeration. This will define the form of the hitbox, such as a sphere, box, or capsule, which can be used for collision detection.

Example usage:

ManualHitbox hitbox = new ManualHitbox();
hitbox.Shape = HitboxShape.Sphere;

Example

ManualHitbox hitbox = new ManualHitbox();
hitbox.Shape = HitboxShape.Sphere;