I read in a pdf by Shahin Rabbani that in order to make everything in Ammo.js deterministic, in particular I should “make sure the following flags in btSolverMode in btContactSolverInfo.h are cleared:
a. SOLVER_RANDMIZE_ORDER
b. SOLVER_USE_WARMSTARTING”
This is for bullet of course and I have not been able to make this work for Ammo.js I just don’t understand which functions I should use to set these parameters.
Also, if anyone has other tips on making Ammo.js deterministic I would be very happy. I want to make a deterministic version of 3d-dice/dice-box for a virtual table top. The problem is that I am very unfamiliar with Ammo.js. I appreciate the help!
I read in a pdf by Shahin Rabbani that in order to make everything in Ammo.js deterministic, in particular I should “make sure the following flags in btSolverMode in btContactSolverInfo.h are cleared:
a. SOLVER_RANDMIZE_ORDER
b. SOLVER_USE_WARMSTARTING”
This is for bullet of course and I have not been able to make this work for Ammo.js I just don’t understand which functions I should use to set these parameters.
Also, if anyone has other tips on making Ammo.js deterministic I would be very happy. I want to make a deterministic version of 3d-dice/dice-box for a virtual table top. The problem is that I am very unfamiliar with Ammo.js. I appreciate the help!
Share Improve this question asked Nov 20, 2024 at 1:31 Robert WegnerRobert Wegner 1737 bronze badges1 Answer
Reset to default 1It seems like
const solverInfo = World.getSolverInfo();
solverInfo.m_solverMode &= ~Ammo.SOLVER_RANDMIZE_ORDER;
solverInfo.m_solverMode &= ~Ammo.SOLVER_USE_WARMSTARTING;
works.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742387045a4434267.html
评论列表(0条)