Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
CollisionEstimationResult Struct Reference

A structure that contains the estimated contact and friction impulses and the resulting body velocities. More...

#include <EstimateCollisionResponse.h>

Public Attributes

Vec3 mLinearVelocity1
 The estimated linear velocity of body 1 after collision.
 
Vec3 mAngularVelocity1
 The estimated angular velocity of body 1 after collision.
 
Vec3 mLinearVelocity2
 The estimated linear velocity of body 2 after collision.
 
Vec3 mAngularVelocity2
 The estimated angular velocity of body 2 after collision.
 
Vec3 mFrictionPoint
 Point at which friction was applied (relative to mBaseOffset of the manifold)
 
Vec3 mTangent1
 Normalized tangent of contact normal.
 
Vec3 mTangent2
 Second normalized tangent of contact normal (forms a basis with mTangent1 and mWorldSpaceNormal)
 
float mFrictionImpulse1 = 0
 Estimated friction impulses in the direction of tangent 1 (kg m / s)
 
float mFrictionImpulse2 = 0
 Estimated friction impulses in the direction of tangent 2 (kg m / s)
 
float mAngularFrictionImpulse = 0
 Estimated angular friction impulse around the world space normal (kg m^2 / s)
 
StaticArray< float, ContactPoints::CapacitymContactImpulse
 Estimated contact impulses (kg m / s)
 

Detailed Description

A structure that contains the estimated contact and friction impulses and the resulting body velocities.

Member Data Documentation

◆ mAngularFrictionImpulse

float CollisionEstimationResult::mAngularFrictionImpulse = 0

Estimated angular friction impulse around the world space normal (kg m^2 / s)

◆ mAngularVelocity1

Vec3 CollisionEstimationResult::mAngularVelocity1

The estimated angular velocity of body 1 after collision.

◆ mAngularVelocity2

Vec3 CollisionEstimationResult::mAngularVelocity2

The estimated angular velocity of body 2 after collision.

◆ mContactImpulse

StaticArray<float, ContactPoints::Capacity> CollisionEstimationResult::mContactImpulse

Estimated contact impulses (kg m / s)

◆ mFrictionImpulse1

float CollisionEstimationResult::mFrictionImpulse1 = 0

Estimated friction impulses in the direction of tangent 1 (kg m / s)

◆ mFrictionImpulse2

float CollisionEstimationResult::mFrictionImpulse2 = 0

Estimated friction impulses in the direction of tangent 2 (kg m / s)

◆ mFrictionPoint

Vec3 CollisionEstimationResult::mFrictionPoint

Point at which friction was applied (relative to mBaseOffset of the manifold)

◆ mLinearVelocity1

Vec3 CollisionEstimationResult::mLinearVelocity1

The estimated linear velocity of body 1 after collision.

◆ mLinearVelocity2

Vec3 CollisionEstimationResult::mLinearVelocity2

The estimated linear velocity of body 2 after collision.

◆ mTangent1

Vec3 CollisionEstimationResult::mTangent1

Normalized tangent of contact normal.

◆ mTangent2

Vec3 CollisionEstimationResult::mTangent2

Second normalized tangent of contact normal (forms a basis with mTangent1 and mWorldSpaceNormal)


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