Click or drag to resize

Extensions_Vector3 Methods

The Extensions_Vector3 type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAdd

Adds the provided X, Y, and Z offsets to Vector3 yielding a new Vector3.

---

The HBcore only provides a version of this that accepts 'float' values. This version accepts 'doubles', because it is inefficient to keep truncating data types (to float) that are provided by the Math and other libraries.

'Double' performance is just as fast as 'Float'. Internally, modern computer architectures calculate using maximum precision (i.e., many bits bigger than double), then truncate the result to fit. The only benefit 'float' has over 'double' is storage space, which is negligible unless you've a database using billions of them.

Public methodStatic memberAddPolarXZ
Public methodStatic memberFanOutRandom

Finds another point near the destination. Useful when toon is 'waiting' for something (e.g., boat, mob repops, etc). This allows multiple people running the same profile to not stand on top of each other while waiting for something.

Notes:

  • * The returned Vector3 is carefully chosen. The returned Vector3 will not cause you to fall off a boat dock or Zeppelin landing.

  • * Should only be used once the player is within 100 yards of the provided location otherwise the raycasts will fail

Public methodStatic memberIsOverGround
Returns true, if ground is within DISTANCE _below_ you.
Top
See Also