your current location:首页 > news>HIT BOX API MINECRAFT

HIT BOX API MINECRAFT

2024-12-15 01:07:58|Myriagame |source:minecraft skins

Collting box API

This module adds more commonly used collision boxes to Minecraft, currently:

Obbbbing box (OBB);

Sphere (SPHERE);

Capsule;

Rare (ray);

Compound collision box (compound).

How to use

Create or obtain the collision box object in any place where the collision detection is performed, and determine whether the collision occurs through the method in the Collicality.

For entities, you can achieve the cache of the collision box by adding HitBoxDataTachments#CollISION.The collision box of this cache can be rendered through F3+B.Note that the DATA has no persistence.

performance

collision box score error unit Axis Based Bring Box 3561837865.930 ± 157982649.213OPS/S Capsule 22350681.198 ± 238993.658OPS/S Capsule (Rotating) 16842309.523 ± 55 28493.224 ± 64548.996Ops/s Interaction box (rotating) 4648963.750 ± 111369.535OPS/S sphere 119556589.705 ± 1711146.560Ops/S

Picture display

Minecraft images

Minecraft images

Minecraft images

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.