mirror of
https://github.com/devZoGok/vb01.git
synced 2026-09-02 19:28:43 +00:00
readable .vb format
This commit is contained in:
@@ -87,8 +87,8 @@ namespace vb01{
|
||||
for(Mesh *mesh : meshes){
|
||||
Material *mat=mesh->getMaterial();
|
||||
if(n->isVisible()&&mat&&mat->isLightingEnabled()){
|
||||
Vector3 pos=n->getWorldPosition();
|
||||
Quaternion rot=n->getWorldOrientation();
|
||||
Vector3 pos=n->localToGlobalPosition(Vector3::VEC_ZERO);
|
||||
Quaternion rot=n->localToGlobalOrientation(Quaternion::QUAT_W);
|
||||
Vector3 rotAxis=rot.norm().getAxis();
|
||||
|
||||
if(rotAxis==Vector3::VEC_ZERO)
|
||||
|
||||
Reference in New Issue
Block a user