コード例 #1
0
void DistanceJointTool::Update(float _deltatime) {
	// Get the values from the properties window.
	Gwen::Controls::GroupBox* box = game->GetUI()->GetPropertiesWindow()->GetPanel(7);
	
	// Get the damping and frequency
	damping = atof(box->FindChildByName("MotorDampingBox", true)->GetValue().c_str());
	frequency = atof(box->FindChildByName("MotorFrequencyBox", true)->GetValue().c_str());
}
コード例 #2
0
void RestitutionTool::Update(float _deltatime) {
	// Get the values from the properties window.
	Gwen::Controls::GroupBox* box = game->GetUI()->GetPropertiesWindow()->GetPanel(12);
	
	// Get the friction
	restitution = atof(box->FindChildByName("RestitutionBox", true)->GetValue().c_str());
}