MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Update

Method Update

ogsr_engine/xrGame/CarExhaust.cpp:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void CCar::SExhaust::Update()
37{
38 VERIFY(!ph_world->Processing());
39 Fmatrix global_transform;
40 pelement->InterpolateGlobalTransform(&global_transform);
41 global_transform.mulB_43(transform);
42 dVector3 res;
43 Fvector res_vel;
44 dBodyGetPointVel(pelement->get_body(), global_transform.c.x, global_transform.c.y, global_transform.c.z, res);
45 CopyMemory(&res_vel, res, sizeof(Fvector));
46 // velocity.mul(0.95f);
47 // res_vel.mul(0.05f);
48 // velocity.add(res_vel);
49 p_pgobject->UpdateParent(global_transform, res_vel);
50}
51
52void CCar::SExhaust::Clear() { CParticlesObject::Destroy(p_pgobject); }
53

Callers

nothing calls this directly

Calls 6

dBodyGetPointVelFunction · 0.85
CopyMemoryFunction · 0.85
mulB_43Method · 0.80
get_bodyMethod · 0.45
UpdateParentMethod · 0.45

Tested by

no test coverage detected