admin管理员组文章数量:1335411
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.
本文标签: solverMaking btSequentialImpulseConstraintSolver deterministic in AmmojsStack Overflow
版权声明:本文标题:solver - Making btSequentialImpulseConstraintSolver deterministic in Ammo.js - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742387044a2465241.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论