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

Method VelSet

src/SB/Game/zNPCGlyph.cpp:442–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442void NPCGlyph::VelSet(xVec3* vel)
443{
444 if (vel != NULL)
445 {
446 xVec3Copy(&vel_glyph, vel);
447 }
448 else
449 {
450 xVec3Copy(&vel_glyph, &g_O3);
451 }
452
453 if (vel == NULL)
454 {
455 flg_glyph &= ~(1 << 2);
456 }
457 else if (xVec3Length2(vel) > 0.0f)
458 {
459 flg_glyph |= (1 << 2);
460 }
461 else
462 {
463 flg_glyph &= ~(1 << 2);
464 }
465}
466
467void NPCGlyph::ScaleSet(xVec3* scale)
468{

Callers

nothing calls this directly

Calls 2

xVec3CopyFunction · 0.85
xVec3Length2Function · 0.85

Tested by

no test coverage detected