Ignore:
Timestamp:
Jun 7, 2012, 1:38:10 PM (11 years ago)
Author:
sam
Message:

orbital: some improvements to the mesh parser and error reporting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/tank.h

    r1434 r1442  
    1919        m_ready(false)
    2020    {
    21         m_body.SendCommand("[sc#110 ab6 6 15 ty-2"
    22                            " sc#aca afcb4 5 16 0.4 tx4 ty5 mx]"
    23                            "[sc#3a0 afcb8 7 10 0.4 tz-4 ty5]");
    24         m_turret.SendCommand("[sc#3a0 afcb3 6 10 0.4 tx-8 afcb3 6 10 0.4 tx4 ty13]"
    25                              "[sc#aca afcb3 6 10 0.4 rx-30 ty13]");
     21        m_body.Compile("[sc#110 ab6 6 15 ty-2 sc#aca afcb4 5 16 0.4 tx4 ty5 mx]"
     22                       "[sc#3a0 afcb8 7 10 0.4 tz-4 ty5]");
     23        m_turret.Compile("[sc#3a0 afcb3 6 10 0.4 tx-8 afcb3 6 10 0.4 tx4 ty13]"
     24                         "[sc#aca afcb3 6 10 0.4 rx-30 ty13]");
    2625
    2726        m_rotation = quat::rotate(RandF(0.f, 360.f), vec3(0, 1, 0));
     
    5958        if (!m_ready)
    6059        {
    61             m_body.SendCommand("irb");
    62             m_turret.SendCommand("irb");
     60            m_body.MeshConvert();
     61            m_turret.MeshConvert();
    6362            m_ready = true;
    6463        }
Note: See TracChangeset for help on using the changeset viewer.