mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 11:52:40 +01:00
Fix GLM syntax issue
This commit is contained in:
parent
1e9e8c4d9c
commit
34478b6651
@ -146,10 +146,10 @@ void DebugState::spawnVehicle(unsigned int id)
|
|||||||
auto ch = getPlayerCharacter();
|
auto ch = getPlayerCharacter();
|
||||||
if(! ch) return;
|
if(! ch) return;
|
||||||
|
|
||||||
auto fwd = ch->rotation * glm::vec3(0.f, 1.f, 0.f);
|
glm::vec3 fwd = ch->rotation * glm::vec3(0.f, 1.f, 0.f);
|
||||||
|
|
||||||
glm::vec3 hit, normal;
|
glm::vec3 hit, normal;
|
||||||
if(hitWorldRay({ch->position + fwd * 5.f}, {0.f, 0.f, -2.f}, hit, normal)) {
|
if(hitWorldRay(ch->position + (fwd * 5.f), {0.f, 0.f, -2.f}, hit, normal)) {
|
||||||
auto spawnpos = hit + normal;
|
auto spawnpos = hit + normal;
|
||||||
getWorld()->createVehicle(id, spawnpos, glm::quat());
|
getWorld()->createVehicle(id, spawnpos, glm::quat());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user