Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
CastConvexVsTriangles.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:
23 CastConvexVsTriangles(const ShapeCast &inShapeCast, const ShapeCastSettings &inShapeCastSettings, Vec3Arg inScale, Mat44Arg inCenterOfMassTransform2, const SubShapeIDCreator &inSubShapeIDCreator1, CastShapeCollector &ioCollector);
24
30 void Cast(Vec3Arg inV0, Vec3Arg inV1, Vec3Arg inV2, uint8 inActiveEdges, const SubShapeID &inSubShapeID2);
31
32protected:
39
40private:
41 ConvexShape::SupportBuffer mSupportBuffer;
42 const ConvexShape::Support * mSupport = nullptr;
43 float mScaleSign;
44};
45
std::uint8_t uint8
Definition Core.h:454
#define JPH_EXPORT
Definition Core.h:236
#define JPH_NAMESPACE_END
Definition Core.h:379
#define JPH_NAMESPACE_BEGIN
Definition Core.h:373
Collision detection helper that casts a convex object vs one or more triangles.
Definition CastConvexVsTriangles.h:14
Vec3 mScale
Definition CastConvexVsTriangles.h:36
CastShapeCollector & mCollector
Definition CastConvexVsTriangles.h:38
const Mat44 & mCenterOfMassTransform2
Definition CastConvexVsTriangles.h:35
SubShapeIDCreator mSubShapeIDCreator1
Definition CastConvexVsTriangles.h:37
const ShapeCast & mShapeCast
Definition CastConvexVsTriangles.h:33
const ShapeCastSettings & mShapeCastSettings
Definition CastConvexVsTriangles.h:34
Virtual interface that allows collecting multiple collision results.
Definition CollisionCollector.h:45
Buffer to hold a Support object, used to avoid dynamic memory allocations.
Definition ConvexShape.h:85
Function that provides an interface for GJK.
Definition ConvexShape.h:69
Holds a 4x4 matrix of floats, but supports also operations on the 3x3 upper left part of the matrix.
Definition Mat44.h:13
Settings to be passed with a shape cast.
Definition ShapeCast.h:92
Definition SubShapeID.h:108
A sub shape id contains a path to an element (usually a triangle or other primitive type) of a compou...
Definition SubShapeID.h:23
Definition Vec3.h:17
Definition ShapeCast.h:69