Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
SoftBodyVertex.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2023 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
8
10
16{
17public:
24 float mInvMass;
25};
26
#define JPH_NAMESPACE_END
Definition: Core.h:354
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:348
An infinite plane described by the formula X . Normal + Constant = 0.
Definition: Plane.h:11
Definition: SoftBodyVertex.h:16
Vec3 mPreviousPosition
Position at the previous time step.
Definition: SoftBodyVertex.h:18
float mInvMass
Inverse mass (1 / mass)
Definition: SoftBodyVertex.h:24
Vec3 mVelocity
Velocity, relative to the center of mass of the soft body.
Definition: SoftBodyVertex.h:20
float mLargestPenetration
Used while finding the collision plane, stores the largest penetration found so far.
Definition: SoftBodyVertex.h:23
int mCollidingShapeIndex
Index in the colliding shapes list of the body we may collide with.
Definition: SoftBodyVertex.h:22
Plane mCollisionPlane
Nearest collision plane, relative to the center of mass of the soft body.
Definition: SoftBodyVertex.h:21
Vec3 mPosition
Position, relative to the center of mass of the soft body.
Definition: SoftBodyVertex.h:19
Definition: Vec3.h:16