Skip to content
0.2.0-dev Download ZIP
19 lines ·646 B Raw
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
7JPH_NAMESPACE_BEGIN
8
9/// Enum indicating which component to use when swizzling
10enum
11{
12 SWIZZLE_X = 0, ///< Use the X component
13 SWIZZLE_Y = 1, ///< Use the Y component
14 SWIZZLE_Z = 2, ///< Use the Z component
15 SWIZZLE_W = 3, ///< Use the W component
16 SWIZZLE_UNUSED = 2, ///< We always use the Z component when we don't specifically want to initialize a value, this is consistent with what is done in Vec3(x, y, z), Vec3(Float3 &) and Vec3::sLoadFloat3Unsafe
17};
18
19JPH_NAMESPACE_END