Implemented a custom physics engine #316
|
@ -72,7 +72,7 @@
|
|||
RigidBody Component:
|
||||
Type: Static
|
||||
Auto Mass: false
|
||||
Mass: 1
|
||||
Mass: .inf
|
||||
Drag: 0.00999999978
|
||||
Angular Drag: 0.00999999978
|
||||
Use Gravity: false
|
||||
|
|
|
@ -319,6 +319,7 @@ namespace SHADE
|
|||
{
|
||||
if (bodyType != Type::DYNAMIC)
|
||||
{
|
||||
invMass = 0.0f;
|
||||
SHLOG_WARNING("Cannot set mass of a non-Dynamic Body {}", entityID)
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace SHADE
|
|||
/*-----------------------------------------------------------------------------------*/
|
||||
|
||||
SHRigidBodyComponent::SHRigidBodyComponent() noexcept
|
||||
: type { Type::STATIC }
|
||||
: type { Type::DYNAMIC }
|
||||
, interpolate { true }
|
||||
, rigidBody { nullptr }
|
||||
{}
|
||||
|
|
Loading…
Reference in New Issue