solver - Making btSequentialImpulseConstraintSolver deterministic in Ammo.js - Stack Overflow

I read in a pdf by Shahin Rabbani that in order to make everything in Ammo.js deterministic, in particu

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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

It 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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信