Ignore:
Timestamp:
Jul 1, 2012, 1:39:19 PM (8 years ago)
Author:
touky
Message:

Added worldentity registration support.
Character now walks around.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/games/ToukyDemo/ToukyDemo.cpp

    r1547 r1548  
    5353
    5454        m_URO = new UserReactiveObject();
     55        m_URO->m_position = vec3(.0f, -30.0f, .0f);
    5556        Ticker::Ref(m_URO);
    5657
    5758        m_Character = new Character();
    58         m_Character->m_position = vec3(.0f, 10.0f, .0f);
     59        m_Character->m_position = vec3(.0f, 10.0f, 40.0f);
    5960        Ticker::Ref(m_Character);
     61        m_URO->InfluenceEntityRegistration(true, m_Character);
    6062
    6163    m_ready = false;
     
    8587ToukyDemo::~ToukyDemo()
    8688{
     89        m_URO->InfluenceEntityRegistration(false, m_Character);
     90
    8791        Ticker::Unref(m_camera);
    8892    Ticker::Unref(m_URO);
Note: See TracChangeset for help on using the changeset viewer.