Fixes 07 (#97)
#84 #82 Added B3_RESTITUTION_ITERATIONS to override restitution iterations. Fix regression in hull stacking stability.
This commit is contained in:
parent
dfa5e6add0
commit
23861418d8
27 changed files with 877 additions and 448 deletions
|
|
@ -1,10 +1,11 @@
|
|||
// SPDX-FileCopyrightText: 2025 Erin Catto
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#include "gfx/draw.h"
|
||||
#include "human.h"
|
||||
#include "imgui.h"
|
||||
#include "sample.h"
|
||||
#include "gfx/draw.h"
|
||||
#include "utils.h"
|
||||
|
||||
#include "box3d/box3d.h"
|
||||
|
||||
|
|
@ -232,9 +233,14 @@ public:
|
|||
m_groundMesh = b3CreateGridMesh( 20, 20, 1.0f, 1, true );
|
||||
b3CreateMeshShape( groundId, &shapeDef, m_groundMesh, b3Vec3_one );
|
||||
|
||||
g_randomSeed = 42;
|
||||
float a = 0.1f * e_count;
|
||||
b3Vec3 lower = { -a, -a, -a };
|
||||
b3Vec3 upper = { a, a, a };
|
||||
for ( int i = 0; i < e_count; ++i )
|
||||
{
|
||||
b3Pos position = { 0.1f * i, 2.0f + 0.5f * i, -0.1f * i };
|
||||
b3Vec3 offset = RandomVec3( lower, upper );
|
||||
b3Pos position = { offset.x, 2.0f, offset.z };
|
||||
float torque = 10.0f;
|
||||
float hertz = 0.5f;
|
||||
float damping = 0.7f;
|
||||
|
|
|
|||
Loading…
Reference in a new issue