MeshLib Documentation
Loading...
Searching...
No Matches
MR::MovementBuildBodyParams Struct Reference

#include <MRMovementBuildBody.h>

Public Attributes

bool allowRotation { true }
 
std::optional< Vector3f > center
 
std::optional< Vector3f > bodyNormal
 
const AffineXf3f * b2tXf { nullptr }
 optional transform body space to trajectory space
 

Member Data Documentation

◆ allowRotation

bool MR::MovementBuildBodyParams::allowRotation { true }

if this flag is set, rotate body in trajectory vertices according to its rotation otherwise body movement will be done without any rotation

◆ b2tXf

const AffineXf3f* MR::MovementBuildBodyParams::b2tXf { nullptr }

optional transform body space to trajectory space

◆ bodyNormal

std::optional<Vector3f> MR::MovementBuildBodyParams::bodyNormal

facing direction of body, used for initial rotation (if allowRotation) if not set body accumulative normal is used

◆ center

std::optional<Vector3f> MR::MovementBuildBodyParams::center

point in body space that follows trajectory if not set body bounding box center is used


The documentation for this struct was generated from the following file: