Class "Capsule"⚓︎
An example mod using the Capsule class can be found here.
Info
You can get this class by using the following functions:
Constructors⚓︎
Capsule ()⚓︎
Capsule Capsule ( Vector Position, Vector SizeMult, float Rotation, float Size )⚓︎
Capsule Capsule ( Vector Position, Vector TargetPosition, float Size )⚓︎
Functions⚓︎
Collide ()⚓︎
boolean Collide ( Capsule Capsule, Vector Point )⚓︎
GetDirection ()⚓︎
Vector GetDirection ( )⚓︎
GetF1 ()⚓︎
float GetF1 ( )⚓︎
Returns the size of the capsule (consistent with size
in both constructors)
GetF2 ()⚓︎
float GetF2 ( )⚓︎
GetPosition ()⚓︎
Vector GetPosition ( )⚓︎
GetVec2 ()⚓︎
Vector GetVec2 ( )⚓︎
Returns the starting position of the capsule (can be set with position
)
GetVec3 ()⚓︎
Vector GetVec3 ( )⚓︎
Returns the ending position of the capsule (can be set with targetposition
)