Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
CollidePointResult.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
9
11
14{
15public:
17
19 inline float GetEarlyOutFraction() const { return 0.0f; }
20
23};
24
#define JPH_NAMESPACE_END
Definition Core.h:379
#define JPH_NAMESPACE_BEGIN
Definition Core.h:373
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition Memory.h:31
ID of a body. This is a way of reasoning about bodies in a multithreaded simulation while avoiding ra...
Definition BodyID.h:13
Structure that holds the result of colliding a point against a shape.
Definition CollidePointResult.h:14
JPH_OVERRIDE_NEW_DELETE float GetEarlyOutFraction() const
Function required by the CollisionCollector. A smaller fraction is considered to be a 'better hit'....
Definition CollidePointResult.h:19
BodyID mBodyID
Body that was hit.
Definition CollidePointResult.h:21
SubShapeID mSubShapeID2
Sub shape ID of shape that we collided against.
Definition CollidePointResult.h:22
A sub shape id contains a path to an element (usually a triangle or other primitive type) of a compou...
Definition SubShapeID.h:23