MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / PitchAndRollStart

Function PitchAndRollStart

src/openrct2/ride/Vehicle.cpp:84–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82CoordsXYZ _vehicleCurPosition;
83
84PitchAndRoll PitchAndRollStart(bool useInvertedSprites, TileElement* tileElement)
85{
86 auto trackType = tileElement->asTrack()->GetTrackType();
87 const auto& ted = GetTrackElementDescriptor(trackType);
88 return PitchAndRoll{ ted.definition.pitchStart, TrackGetActualBank3(useInvertedSprites, tileElement) };
89}
90
91int32_t GetAccelerationDecrease2(const int32_t velocity, const int32_t totalMass)
92{

Callers 3

Loc6DC462Method · 0.85
Loc6DCA9AMethod · 0.85

Calls 3

TrackGetActualBank3Function · 0.85
GetTrackTypeMethod · 0.45
asTrackMethod · 0.45

Tested by

no test coverage detected