Jump to content

[SOLVED] Function not executed.


photo

Recommended Posts

Posted

The function inside the key input code does not seem to be working when executed after assembling.

 

update()
{
    ControlsPtr controls = Game::get()->getPlayer()->getControls();
    if (controls->clearState(Controls::STATE_USE))
    {
        ((VRPlayerVive*)vr_player)->landPlayerTo(Vec3(0.f), vec3(0, 1, 0));    //It works.
        ((VRPlayerVive*)vr_player)->startCorrecting();                                        //it is not works.
    }

}

 

I'm not sure if the function is really not running because I can't debug Execute file , but the inserted Log in function did not appear.

 

What's the problem?

Posted

It seems like you have something wrong with the assembly. Probably, you need clean and rebuild your CPP project.

try to add any console output, to make sure the program really works

Log::warning("programm is here 1111\n");

 

  • Like 1
Posted

Thank you. I think it works.

  • morbid changed the title to [SOLVED] Function not executed.
×
×
  • Create New...