Merge branch 'master' into Sound+Particles

Conflicts:
	src/GameWorld.cpp
	vs11/Returngeance/Returngeance.vcxproj
	vs11/Returngeance/Returngeance.vcxproj.filters
This commit is contained in:
Stiffly
2014-06-03 20:39:44 +02:00
29 changed files with 1391 additions and 458 deletions
+29 -4
View File
@@ -16,13 +16,38 @@ struct Physics : Component
EXPLOSION = 4,
};
enum class MotionTypeEnum
{
Dynamic,
Fixed,
Keyframed
};
Physics()
: Mass(1.f), Static(false), Phantom(false), CalculateCenterOfMass(true), CenterOfMass(glm::vec3(0)), InitialLinearVelocity(glm::vec3(0)), InitialAngularVelocity(glm::vec3(0)),
LinearDamping(0.f), AngularDamping(0.05f), GravityFactor(1.f), Friction(0.5f), Restitution(0.4f), MaxLinearVelocity(200.f), MaxAngularVelocity(200.f),
CollisionLayer(0), CollisionSystemGroup(0), CollisionSubSystemId(0), CollisionSubSystemDontCollideWith(0), CollisionEvent(false){}
: Mass(1.f)
//, Static(false)
, MotionType(MotionTypeEnum::Fixed)
, Phantom(false)
, CalculateCenterOfMass(true)
, CenterOfMass(glm::vec3(0))
, InitialLinearVelocity(glm::vec3(0))
, InitialAngularVelocity(glm::vec3(0))
, LinearDamping(0.f)
, AngularDamping(0.05f)
, GravityFactor(1.f)
, Friction(0.5f)
, Restitution(0.4f)
, MaxLinearVelocity(200.f)
, MaxAngularVelocity(200.f)
, CollisionLayer(0)
, CollisionSystemGroup(0)
, CollisionSubSystemId(0)
, CollisionSubSystemDontCollideWith(0)
, CollisionEvent(false)
{ }
float Mass;
bool Static;
MotionTypeEnum MotionType;
bool Phantom;
bool CalculateCenterOfMass;
+16
View File
@@ -0,0 +1,16 @@
#ifndef Components_VehicleSpawn_h__
#define Components_VehicleSpawn_h__
#include "Component.h"
namespace Components
{
struct SpawnPoint : Component
{
virtual SpawnPoint* Clone() const override { return new SpawnPoint(*this); }
};
}
#endif // Components_VehicleSpawn_h__
+3 -4
View File
@@ -10,10 +10,9 @@ namespace Components
struct Vehicle : Component
{
Vehicle()
: MaxTorque(1000.0f), MinRPM(0.0f), OptimalRPM(2000.0f), MaxRPM(3000.0f), MaxSteeringAngle(35), TopSpeed(70.0f),
MaxSpeedFullSteeringAngle(40.0f), SpringDamping(1.f), UpshiftRPM(2500.0f), DownshiftRPM(500.0f),
gearsRatio0(4.5f), gearsRatio1(2.5f), gearsRatio2(1.0f), gearsRatio3(0.5f){ }
//gearsRatio0(3.0f), gearsRatio1(2.25f), gearsRatio2(1.5f), gearsRatio3(1.0f)
: MaxTorque(1000.0f), MinRPM(200.0f), OptimalRPM(3000.0f), MaxRPM(6000.0f), MaxSteeringAngle(35), TopSpeed(90.0f),
MaxSpeedFullSteeringAngle(40.0f), SpringDamping(1.f), UpshiftRPM(5500.0f), DownshiftRPM(1000.0f),
gearsRatio0(3.0f), gearsRatio1(2.25f), gearsRatio2(1.5f), gearsRatio3(1.0f){ }
float MaxTorque;
float MinRPM;
float OptimalRPM;
+20
View File
@@ -0,0 +1,20 @@
#ifndef Components_Wall_h__
#define Components_Wall_h__
#include "Component.h"
#include <string>
#include <vector>
namespace Components
{
struct Wall : Component
{
std::vector<EntityID> Walldebris;
virtual Wall* Clone() const override { return new Wall(*this); }
};
}
#endif // Components_TankShell_h__