#define JPH_EXPORT
Definition Core.h:291
unsigned int uint
Definition Core.h:551
#define JPH_NAMESPACE_END
Definition Core.h:474
#define JPH_NAMESPACE_BEGIN
Definition Core.h:468
JPH_EXPORT void EstimateCollisionResponse(const Body &inBody1, const Body &inBody2, const ContactManifold &inManifold, CollisionEstimationResult &outResult, float inCombinedFriction, float inCombinedRestitution, float inMinVelocityForRestitution=1.0f, uint inNumIterations=10)
Definition EstimateCollisionResponse.cpp:14
Simple variable length array backed by a fixed size buffer.
Definition StaticArray.h:14
A structure that contains the estimated contact and friction impulses and the resulting body velociti...
Definition EstimateCollisionResponse.h:13
float mAngularFrictionImpulse
Estimated angular friction impulse around the world space normal (kg m^2 / s)
Definition EstimateCollisionResponse.h:21
Vec3 mFrictionImpulse
Estimated linear friction impulse (kg m / s)
Definition EstimateCollisionResponse.h:20
Vec3 mLinearVelocity2
The estimated linear velocity of body 2 after collision.
Definition EstimateCollisionResponse.h:16
Vec3 mAngularVelocity1
The estimated angular velocity of body 1 after collision.
Definition EstimateCollisionResponse.h:15
StaticArray< float, ContactPoints::Capacity > mContactImpulse
Estimated contact impulses (kg m / s)
Definition EstimateCollisionResponse.h:23
Vec3 mFrictionPoint
Point at which friction was applied (relative to mBaseOffset of the manifold)
Definition EstimateCollisionResponse.h:19
Vec3 mLinearVelocity1
The estimated linear velocity of body 1 after collision.
Definition EstimateCollisionResponse.h:14
Vec3 mAngularVelocity2
The estimated angular velocity of body 2 after collision.
Definition EstimateCollisionResponse.h:17