MCPcopy Create free account
hub / github.com/doldecomp/mkdd / initSwingVel

Method initSwingVel

include/Sato/Objects/GeoObjPathMove.h:35–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 GeoObjPathMoveWaveY(const CrsData::SObject &obj) : GeoObjPathMove(obj) {}
34
35 void initSwingVel(stRandom *rand, f32 scalar) { // fabricated
36 mSwingVel = (rand->get_ufloat_1() * 2.0f - 1.0f) * 32767.0f * scalar;
37 }
38
39 virtual void initPath(stRandom *, JGeometry::TVec3f *, const f32 &);
40 virtual void movePath(JGeometry::TVec3f *, JGeometry::TVec3f *, f32, f32);

Callers

nothing calls this directly

Calls 1

get_ufloat_1Method · 0.80

Tested by

no test coverage detected