MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / UpdatePosition

Method UpdatePosition

engine/Poseidon/World/Simulation/Simul.cpp:914–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

912}
913
914void AttachedOnVehicle::UpdatePosition()
915{
916 if (_vehicle != nullptr)
917 {
918 float scale = Scale();
919 Matrix4 toWorld = _vehicle->WorldTransform();
920 SetPosition(toWorld.FastTransform(_pos));
921 SetOrient(toWorld.Rotate(_dir), toWorld.DirectionUp());
922 SetScale(scale);
923 }
924}
925
926LSError AttachedOnVehicle::Serialize(ParamArchive& ar)
927{

Callers 1

SimulateAllVehiclesMethod · 0.45

Calls 4

DirectionUpMethod · 0.80
WorldTransformMethod · 0.45
FastTransformMethod · 0.45
RotateMethod · 0.45

Tested by

no test coverage detected