Jump to content

How to open or close post_ sensor_green through C++ code?


photo

Recommended Posts

int AppWorldLogic::update()
{
	// Write here code to be called before updating each render frame: specify all graphics-related functions you want to be called every frame while your application executes.

	NodePtr node = World::getNodeByName("SU35");
	PlayerPtr player = VRPlayer::get()->getPlayer();
	
	player->setParent(node);
   player->addScriptableMaterial();
.....
}

I implement this through the addScriptableMaterial function, but I don't know how to convert the post_sensor_green as a parameter.

Link to comment
×
×
  • Create New...