mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-23 10:52:38 +01:00
Fixed Collision model orientations
This commit is contained in:
parent
9edd196bae
commit
dfb3ce0d74
@ -152,7 +152,7 @@ bool GTAEngine::placeItems(const std::string& name)
|
|||||||
msta->setWorldTransform(btTransform(
|
msta->setWorldTransform(btTransform(
|
||||||
btQuaternion(
|
btQuaternion(
|
||||||
inst.rotX, inst.rotY, inst.rotZ, inst.rotW
|
inst.rotX, inst.rotY, inst.rotZ, inst.rotW
|
||||||
),
|
).inverse(),
|
||||||
btVector3(
|
btVector3(
|
||||||
inst.posX, inst.posY, inst.posZ
|
inst.posX, inst.posY, inst.posZ
|
||||||
)
|
)
|
||||||
|
@ -320,7 +320,7 @@ void GTARenderer::renderWorld()
|
|||||||
LoaderIPLInstance &obj = inst.instance;
|
LoaderIPLInstance &obj = inst.instance;
|
||||||
|
|
||||||
if(((inst.object->flags & LoaderIDE::OBJS_t::NIGHTONLY) | (inst.object->flags & LoaderIDE::OBJS_t::DAYONLY)) != 0) {
|
if(((inst.object->flags & LoaderIDE::OBJS_t::NIGHTONLY) | (inst.object->flags & LoaderIDE::OBJS_t::DAYONLY)) != 0) {
|
||||||
continue;
|
//continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!inst.model)
|
if(!inst.model)
|
||||||
|
Loading…
Reference in New Issue
Block a user