QcBoatBody Namespace
The body of a boat (decision E-920), the same for the server (collisions, riders, placing) and the client (targeting, drawing, the driver's prediction). More...
| Header: | #include <common/world/QcBoatBody.h> |
Variables
Functions
| QcVec3 | driverSeat(const QcVec3 &feet, double yaw) |
| QcVec3 | forward(double yaw) |
| QcVec3 | passengerSeat(const QcVec3 &feet, double yaw) |
Detailed Description
Lengths in metres, from the boat's feet (the middle of its bottom face); the box is square like every body box, its size the role model's. The model points along the boat's yaw (yaw 0: north, -z).
Variable Documentation
const double QcBoatBody::floor
The top of the boat's floor above its feet: the riders sit on it.
const double QcBoatBody::height
Height of the box.
const double QcBoatBody::width
Width and depth of the box.
Function Documentation
QcVec3 QcBoatBody::driverSeat(const QcVec3 &feet, double yaw)
Returns the feet of the driver of a boat with its feet at feet, pointing to yaw.
QcVec3 QcBoatBody::forward(double yaw)
Returns the horizontal direction the boat points to at yaw degrees (0: north, 90: east).
QcVec3 QcBoatBody::passengerSeat(const QcVec3 &feet, double yaw)
Returns the feet of a creature sitting in the front of a boat with its feet at feet, pointing to yaw: on its floor.