Ignore:
Timestamp:
Aug 14, 2012, 2:22:30 PM (9 years ago)
Author:
Jnat
Message:

not working ...

File:
1 edited

Legend:

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

    r1723 r1739  
    1515    {
    1616                m_bodymesh.Compile("[sc#3a0 afcb5 10 5 0.4 ty5]""[sc#a30 afcb8 7 10 0.4]");
     17                //m_bo.m_position = m_position + vec3(100.0f,100.0f,100.0f);
    1718    }
    1819
     
    2122        if (m_stick)
    2223            Input::UntrackStick(m_stick);
     24                m_bo = new Bo();
     25                Ticker::Ref(m_bo);
    2326    }
    2427
     
    3235        float updown = (float)(Input::GetButtonState(273 /*SDLK_UP*/) - Input::GetButtonState(274 /*SDLK_DOWN*/));
    3336        float rightleft = (float)(Input::GetButtonState(275 /*SDLK_RIGHT*/) - Input::GetButtonState(276 /*SDLK_LEFT*/));
     37               
     38                //float StickAngle = (float)m_stick->GetAxis(2);
     39
    3440                if (!m_stick)
    3541            m_stick = Input::TrackStick(0);
     
    5965                        m_position += deltapos;
    6066                }
    61                
     67                m_bo->m_position = (m_position + vec3(0.0f,0.0f,10.0f) );
    6268                //m_position += deltapos;
    6369
     
    8288    EasyMesh m_bodymesh;
    8389    Stick *m_stick;
     90        Bo *m_bo;
    8491       
    8592    bool m_ready;
Note: See TracChangeset for help on using the changeset viewer.