Optimize vector operations within your Unity projects. Calculate square distances efficiently and easily manipulate individual components of Vector2 and Vector3 objects.


Release v1.0.0

https://github.com/swzwij/Code-Crate/releases/tag/Extensions-Pack-v1.0.0


Installation

Importing a Unity Package:

  1. Download the Package: Locate the Unity package you want to import. This could be from the Unity Asset Store or a developer's website. Download the .unitypackage file.

  2. Import into Unity: There are two ways to import the package into your Unity project:

  3. Import Options (Optional):

    A window will appear showing the contents of the package. By default, all items are selected for import. You can uncheck any files or folders you don't want to import into your project.

  4. Click Import: Once you're happy with the selection, click Import to begin importing the package files into your project.


Usage

Method Description
SqrDistance Calculates the square distance between two points in 3D space.
SetX Sets the X axis of a Vector3 / Vector2 to the specified value.
SetY Sets the Y axis of a Vector3 / Vector2 to the specified value.
SetZ Sets the Z axis of a Vector3 to the specified value.