MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xClimateVecFromAngle

Function xClimateVecFromAngle

src/SB/Core/x/xClimate.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17const xVec3 snow_dvel = { 0.1f, 0.1f, 0.1f };
18
19void xClimateVecFromAngle(F32 angleDegrees, xVec3* vec)
20{
21 xMat3x3 Mat;
22
23 xMat3x3Identity(&Mat);
24 xMat3x3Euler(&Mat, (PI * angleDegrees) / ONEEIGHTY, 0.0f, 0.0f);
25 xVec3Init(vec, 0.0f, 0.0f, 1.0f);
26 xMat3x3LMulVec(vec, &Mat, vec);
27}
28
29void xClimateInit(_tagClimate* climate)
30{

Callers 1

xClimateInitAssetFunction · 0.85

Calls 4

xMat3x3IdentityFunction · 0.85
xMat3x3EulerFunction · 0.85
xVec3InitFunction · 0.85
xMat3x3LMulVecFunction · 0.70

Tested by

no test coverage detected