MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / setPosition

Method setPosition

game/state/city/vehicle.cpp:3054–3073  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3052}
3053
3054void Vehicle::setPosition(const Vec3<float> &pos)
3055{
3056 this->position = pos;
3057 if (!this->tileObject)
3058 {
3059 LogError("setPosition called on vehicle with no tile object");
3060 }
3061 else
3062 {
3063 this->tileObject->setPosition(pos);
3064 }
3065 if (this->shadowObject)
3066 {
3067 this->shadowObject->setPosition(pos);
3068 }
3069 if (this->smokeDoodad)
3070 {
3071 this->smokeDoodad->setPosition(pos + SMOKE_DOODAD_SHIFT);
3072 }
3073}
3074
3075void Vehicle::setManualFirePosition(const Vec3<float> &pos)
3076{

Callers 4

updateMethod · 0.45
updateMethod · 0.45
updateFallingMethod · 0.45
updateSlidingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected