Forge test

This commit is contained in:
luboslenco
2024-12-03 22:19:12 +01:00
parent c5fa5bd503
commit dbf24344b2
9 changed files with 77 additions and 17 deletions
+5 -1
View File
@@ -144,7 +144,7 @@ void _jolt_world_create() {
void _jolt_world_update() {
#ifdef is_forge
const int cCollisionSteps = 16;
const int cCollisionSteps = 2;
#else
const int cCollisionSteps = 1;
#endif
@@ -228,6 +228,10 @@ void *_jolt_body_create(int shape, float mass, float dimx, float dimy, float dim
BodyCreationSettings settings(shape_c, RVec3(x, y, z), Quat::sIdentity(), mass == 0 ? EMotionType::Static : EMotionType::Dynamic,
mass == 0 ? Layers::NON_MOVING : Layers::MOVING);
#ifdef is_forge
settings.mAllowSleeping = false;
#endif
// if (ccd) {
if (shape != 2) { // != Mesh
settings.mMotionQuality = EMotionQuality::LinearCast;