QtCraft API C++ classes QML types Handbook

QcMinecartCollisions::Pair Struct

struct QcMinecartCollisions::Pair

Two awake carts whose bodies overlap, by table index (first < second), and the horizontal line from the first to the second. More...

Header: #include <server/minecarts/QcMinecartCollisions.h>

Public Variables

qsizetype first
QcVec3 line
qsizetype second

Detailed Description

Carts standing (almost) on the same spot get the line along the track under the one with the lower id (east without a track), pointing from the lower id to the higher.

Member Variable Documentation

qsizetype Pair::first

The table index of the first cart.

QcVec3 Pair::line

The horizontal unit line from the first cart to the second.

qsizetype Pair::second

The table index of the second cart.