Removed unnecessary comment & added FloatingEffect to Schema/Types/Entity.xsd

This commit is contained in:
antc13
2016-03-02 17:42:11 +01:00
parent 7d15313209
commit e56f203f7c
2 changed files with 1 additions and 1 deletions
@@ -13,7 +13,6 @@ public:
{
ComponentWrapper& transform = m_World->GetComponent(component.EntityID, "Transform");
(double&)component["Time"] += dt;
//(double)component["Amplitude"] * glm::sin((glm::two_pi<double>() / (double)component["Period"]) * (double)component["Time"]);
(glm::vec3&)transform["Position"] = (float)(double)component["Amplitude"] * glm::sin((glm::two_pi<float>() / (float)(double)component["Period"]) * (float)(double)component["Time"]) * (glm::vec3)component["Axis"];
}
+1
View File
@@ -53,6 +53,7 @@
<xs:element ref="c:WeaponAttachment" minOccurs="0"/>
<xs:element ref="c:DefenderWeapon" minOccurs="0"/>
<xs:element ref="c:CapturePointArrowHUD" minOccurs="0"/>
<xs:element ref="c:FloatingEffect" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>