StevEngine
StevEngine is a customizable C++ game engine.
Loading...
Searching...
No Matches
StevEngine::Physics::MotionProperties Struct Reference

Motion properties configuration for rigid bodies. More...

#include <physics/RigidBody.hpp>

Public Member Functions

 MotionProperties (double gravityFactor=1.0, double linearDamping=0.0, double angularDamping=0.0, JPH::EAllowedDOFs allowedDOFs=JPH::EAllowedDOFs::All, double maxLinearVelocity=0.0, double maxAngularVelocity=0.0)
 Create motion properties configuration.
 

Public Attributes

double LinearDamping
 Linear velocity damping factor.
 
double AngularDamping
 Angular velocity damping factor.
 
double MaxLinearVelocity
 Maximum linear velocity.
 
double MaxAngularVelocity
 Maximum angular velocity.
 
double GravityFactor
 Gravity influence multiplier.
 
JPH::EAllowedDOFs AllowedDOFs
 Allowed degrees of freedom.
 

Detailed Description

Motion properties configuration for rigid bodies.

Constructor & Destructor Documentation

◆ MotionProperties()

StevEngine::Physics::MotionProperties::MotionProperties ( double gravityFactor = 1.0,
double linearDamping = 0.0,
double angularDamping = 0.0,
JPH::EAllowedDOFs allowedDOFs = JPH::EAllowedDOFs::All,
double maxLinearVelocity = 0.0,
double maxAngularVelocity = 0.0 )
inline

Create motion properties configuration.

Parameters
gravityFactorGravity influence multiplier
linearDampingLinear velocity damping
angularDampingAngular velocity damping
allowedDOFsAllowed degrees of freedom
maxLinearVelocityMaximum linear velocity (0 for unlimited)
maxAngularVelocityMaximum angular velocity (0 for unlimited)

The documentation for this struct was generated from the following file: