Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/jolt_physics/Jolt/Physics/Collision/AABoxCast.h
9912 views
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
7
#include <Jolt/Geometry/AABox.h>
8
9
JPH_NAMESPACE_BEGIN
10
11
/// Structure that holds AABox moving linearly through 3d space
12
struct AABoxCast
13
{
14
JPH_OVERRIDE_NEW_DELETE
15
16
AABox mBox; ///< Axis aligned box at starting location
17
Vec3 mDirection; ///< Direction and length of the cast (anything beyond this length will not be reported as a hit)
18
};
19
20
JPH_NAMESPACE_END
21
22