Removed unnecessary comment & added FloatingEffect to Schema/Types/Entity.xsd
This commit is contained in:
@@ -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"];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user