mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 11:52:40 +01:00
* Pickups speed adjusted * requested changes * Variable name adjusted
This commit is contained in:
parent
9b4ebc105c
commit
342e3c8f83
@ -308,9 +308,10 @@ void ObjectRenderer::renderVehicle(VehicleObject* vehicle,
|
||||
void ObjectRenderer::renderPickup(PickupObject* pickup, RenderList& outList) {
|
||||
if (!pickup->isEnabled()) return;
|
||||
|
||||
static constexpr float kRotationSpeedCoeff = 3.0f;
|
||||
glm::mat4 modelMatrix =
|
||||
glm::translate(glm::mat4(1.0f), pickup->getPosition());
|
||||
modelMatrix = glm::rotate(modelMatrix, m_world->getGameTime(),
|
||||
modelMatrix = glm::rotate(modelMatrix, m_world->getGameTime() * kRotationSpeedCoeff,
|
||||
glm::vec3(0.f, 0.f, 1.f));
|
||||
|
||||
auto odata = pickup->getModelInfo<SimpleModelInfo>();
|
||||
|
Loading…
Reference in New Issue
Block a user