Hi guys. I am re-starting this topic… on behalf of myself and forum friend @Theodore_Lee.
It is a continuance of: older thread
Overview: Theo discovered that Ranaan’s Oimo Car… had broken “motor” on its back wheels. Normally, I think space-bar makes the car move forward. Perhaps it is ANY key other-than left/right arrows (steering).
The setMotor on some Oimo joints… is failing, but NOT in BJS 2.4. Last I checked, the #6 demo (link above) works fine in BJS 2.4 (another thing Theo discovered - see title of his older post).
Theo and I did more investigation… here - using lines 364-374 to try to FORCE the Oimo setMotor to start working (without needing key-press). No joy.
But we learned that ENABLING line 361… showed some “micro-rotations” at console. This COULD indicate that the setMotor IS working, but something (else) is wrong.
MY THEOry… the wheel’s transformNode is not allowing the Oimo joint-motor to rotate (much). Problem in Oimo plugin… something in setMotor area. OR… the wheel needs a property set… some big ugly-named thing like wheel.getWorldMatrix().allowExternalStuffToRotateMe = true; heh.
Here’s another playground… we’ll call “paddle wheel”. Its Oimo motor/bearing is also not-rotating. It suffers from the same issue as the rear wheels on the car.
So… as usual, we ping @RaananW in hopes that he has a miracle in his back pocket. @temechon was a pretty good physics pilot, too, but we lost him, somewhere, somehow. (I hear he’s been cuddling with a super-model)
NOTE: The setMotor in the Cannon plugin… is working, but that might be completely impertinent to the Oimo problem. Different plugins, different motors, different methods.
As best I can tell… something happened to core… after BJS 2.4… that is making the Oimo setMotor fail… or ONLY allowing micro-moving. If you read the old forum thread, you see that Theo has begun trying to convert the Oimo car… to a Cannon car. NOT an easy task. AND, that won’t fix our broken Oimo car wheels and paddle wheel.
Here’s a link to Raanan’s Oimo Car Tutorial, as needed. As you can see, the Oimo Car is more than just 4 wheels and a body. It has spring-based “suspension”, which is pretty cool, and advanced.
All help/ideas… welcome. TWO avenues of help, needed. ONE… help Theo get a CannonJS version of the Oimo car… operational. AND/OR… help us find the Oimo setMotor problem, which could be a problem RELATED-TO BJS mesh transformNodes or similar. Remember… no problems in BJS 2.4. I think that’s a big hint. Thanks!