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:
25 float mInvMass;
26};
27
#define JPH_NAMESPACE_END
Definition: Core.h:378
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:372
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:25
Vec3 mVelocity
Velocity, relative to the center of mass of the soft body.
Definition: SoftBodyVertex.h:20
bool mHasContact
True if the vertex has collided with anything in the last update.
Definition: SoftBodyVertex.h:23
float mLargestPenetration
Used while finding the collision plane, stores the largest penetration found so far.
Definition: SoftBodyVertex.h:24
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:17