
It is currently Fri May 31, 2024 6:18 am



AngleVectors( cubeangles, &fwd, &right, &up );
Vector worldspaceOffset = Point - Cube;
Vector RelativeOffset( DotProduct( fwd, worldspaceOffset ), DotProduct( right, worldspaceOffset ), DotProduct( up, worldspaceOffset ) );
[...]
AngleVectors( cubeangles, &fwd, &right, &up );
Vector CurrentPointPosition( fwd * RelativeOffset.x, right * RelativeOffset.y, up * RelativeOffset.z );
Users browsing this forum: No registered users