Changeset 1740


Ignore:
Timestamp:
Aug 14, 2012, 2:33:04 PM (11 years ago)
Author:
Jnat
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/games/demo-jnat/player.h

    r1739 r1740  
    1616                m_bodymesh.Compile("[sc#3a0 afcb5 10 5 0.4 ty5]""[sc#a30 afcb8 7 10 0.4]");
    1717                //m_bo.m_position = m_position + vec3(100.0f,100.0f,100.0f);
     18                m_bo = new Bo();
     19                Ticker::Ref(m_bo);
    1820    }
    1921
     
    2224        if (m_stick)
    2325            Input::UntrackStick(m_stick);
    24                 m_bo = new Bo();
    25                 Ticker::Ref(m_bo);
     26                               
     27                Ticker::Unref(m_bo);
    2628    }
    2729
     
    4547        {
    4648            rightleft += 1.f * m_stick->GetAxis(0);
    47             //updown += -1.f * m_stick->GetAxis(1);
     49            updown += -1.f * m_stick->GetAxis(1);
    4850        }
    4951
     
    6668                }
    6769                m_bo->m_position = (m_position + vec3(0.0f,0.0f,10.0f) );
     70                m_bo->m_rotation = lol::atan2(updown,rightleft);
    6871                //m_position += deltapos;
    6972
Note: See TracChangeset for help on using the changeset viewer.