Esempio n. 1
0
//---------------------------------------------------------------------------//
WeaponTrail::WeaponTrail(Ogre::String  name, Ogre::SceneManager* s )
:m_TrailObject(0),
m_MaxSegmentCount(30),
mSceneMgr(s),
m_IsActive(true)
{
	m_SegmentStartColorChange = Ogre::ColourValue(1.0,1.0,1.0,1.0);
	m_SegmentEndColorChange = Ogre::ColourValue(1.0,1.0,1.0,1.0);
	m_SegmentStartInitialColor = Ogre::ColourValue(0.6,0.5,0.8,1);
	m_SegmentEndInitialColor = Ogre::ColourValue(1.0,0.2,1.0,1);

	m_SegmentStartColorChange *= 3.0;
	m_SegmentEndColorChange *= 3.0;

	m_Width = 30.0;

	setWeaponEntity(0);
	init();
}
Esempio n. 2
0
	//---------------------------------------------------------------------------//
	WeaponTrail::WeaponTrail(const std::string& p_Name) :
	m_TrailObject(0),
	m_MaxSegmentCount(50), //2 50
	m_TrailBase(0),
	m_TrailTip(0),
	m_IsActive(true)
	{
		m_SegmentStartColorChange = Ogre::ColourValue(1.0,1.0,1.0,1.0);
		m_SegmentEndColorChange = Ogre::ColourValue(1.0,1.0,1.0,1.0);
		m_SegmentStartInitialColor = Ogre::ColourValue(0.6,0.5,0.8,1.0);
		m_SegmentEndInitialColor = Ogre::ColourValue(1.0,0.2,1.0,1.0);

		m_SegmentStartColorChange *= 1.5;
		m_SegmentEndColorChange *= 1.5;

		m_Width = 3.0;

		setWeaponEntity(0);
		init();

		mName = p_Name;
	}