Vector3 CenterB { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The CenterB property of the ManualHitbox class represents the second center point of the hitbox in 3D space. This property is used to define one of the two points that determine the position and size of the hitbox within the game world. It is a Vector3 type, which means it contains three float values representing the X, Y, and Z coordinates.

Usage

To use the CenterB property, you need to have an instance of the ManualHitbox component. You can then get or set the CenterB property to adjust the position of the hitbox's second center point.

Example usage:

ManualHitbox hitbox = new ManualHitbox();
Vector3 newCenterB = new Vector3(1.0f, 2.0f, 3.0f);
hitbox.CenterB = newCenterB;

This code sets the CenterB property to a new position in the 3D space.

Example

// Example of setting the CenterB property
ManualHitbox hitbox = new ManualHitbox();

// Define a new position for CenterB
Vector3 newCenterB = new Vector3(1.0f, 2.0f, 3.0f);

// Assign the new position to CenterB
hitbox.CenterB = newCenterB;

// Output the current CenterB position
Vector3 currentCenterB = hitbox.CenterB;
// Use currentCenterB as needed