25 lines
611 B
C++
25 lines
611 B
C++
/* -----------------------------------------------------------------------------
|
|
GSFramework
|
|
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
|
------------------------------------------------------------------------------*/
|
|
|
|
|
|
#include "core/physic_material.h"
|
|
|
|
using namespace GS::Core;
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
PhysicMaterial::PhysicMaterial()
|
|
{
|
|
mass = 1.f;
|
|
|
|
SetFriction();
|
|
restitution = 0.1f;
|
|
|
|
sb_damping = 0.99f;
|
|
sb_stiffness = 1;
|
|
sb_torsion = 1;
|
|
}
|
|
//------------------------------------------------------------------------------
|