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.
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.
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;
ManualHitbox hitbox = new ManualHitbox(); hitbox.Shape = HitboxShape.Sphere;