Class Attach

Helper to attach something to a transforming mesh collider.

class Attach

Helper to attach something to a transforming mesh collider.

This will track the relative movement at given point. Which can be later applied to an object in order to move it with the mesh.

Public Functions

Attach() = default
fm_vec3_t update(const fm_vec3_t &ownPos)

Updates the difference and returns it.

Returns:

difference since last call

void setReference(const Coll::MeshCollider *meshCollider)

sets a new mesh to track.

Parameters:

meshCollider