Something like a pinball #241
Replies: 6 comments 2 replies
-
|
Maybe try to make the two flips simple kinematic objects instead of working with constraints? |
Beta Was this translation helpful? Give feedback.
-
|
thanks, Ive got something working, but always with constraints. 2022-02-03.13-16-42.mp4 |
Beta Was this translation helpful? Give feedback.
-
|
I want now to load real pinball parts , should i use "simple kinematic objects" too to join them together ? |
Beta Was this translation helpful? Give feedback.
-
|
It seems that the Yrotation axe for the "hull" shape is centered whereas the Yrotation axe for the "convex" shape is determined by the stl geometry loaded. but the convex shape has two many vertices. Do you know how I could the hull shape, but with a good rotation axe according to the stl geometry ?
Thxs |
Beta Was this translation helpful? Give feedback.
-
|
I am now with this code https://github.com/scenaristeur/flipball/blob/main/enable3D_webpack/www/scripts/loader_throw.js With just the stl rubber that flip with arrows and down arrow to have new balls. But sometimes the ball pass through the rubber . I 've tried with the ccd function but do i have to apply to the two ( the ball and the rubber) because this is the rubber that have a high velocity ? What parameter should i use to the rubber as the shape is not a standard (sphere or box) ? |
Beta Was this translation helpful? Give feedback.
-
|
reply to #337 (reply in thread)
app here https://scenaristeur.github.io/flipball/
--> you can zoom out with two finger and rotate your table as you want
--> marble is an attemp to build a marble machine like this one https://www.youtube.com/watch?v=0b-B_Bg31Zg. --> modele is an empty-sample file to show how to build a custom table in https://github.com/scenaristeur/flipball/tree/main/src/tables |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Hi, bravo @yandeu for this great physic abstraction of three with ammo.
I want to make something like a pinball but i don't understand how to do it with enable3d.
starting from the webpack example, i've added a table, attached two cylinder and two flips.
here is the code https://github.com/scenaristeur/flipball/blob/main/enable3D_webpack/www/scripts/three.ts
but as you can see, the left flip can rotate but does not collide with other object (the green ball) and the right flip collide with the blue cube but does not rotate when I hit the keyboard left or right arrow.
2022-01-26.00-23-11.mp4
I would like to know what is the correct code . could you explain me how to implement this kind of object that can rotate and collide.
Thxs
Beta Was this translation helpful? Give feedback.
All reactions