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

Method ExitVelocity

ogsr_engine/xrGame/Car.cpp:1999–2008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1997}
1998
1999Fvector CCar::ExitVelocity()
2000{
2001 CPhysicsShell* P = PPhysicsShell();
2002 if (!P || !P->isActive())
2003 return Fvector().set(0, 0, 0);
2004 CPhysicsElement* E = P->get_ElementByStoreOrder(0);
2005 Fvector v = ExitPosition();
2006 dBodyGetPointVel(E->get_body(), v.x, v.y, v.z, cast_fp(v));
2007 return v;
2008}
2009
2010void CCar::SyncNetState()
2011{

Callers 1

detach_VehicleMethod · 0.80

Calls 7

ExitPositionFunction · 0.85
dBodyGetPointVelFunction · 0.85
cast_fpFunction · 0.85
isActiveMethod · 0.45
setMethod · 0.45
get_bodyMethod · 0.45

Tested by

no test coverage detected