I have a coin RigidBodyand walls around it with boxed colliders. For reference, I applied the following code to a coin.
RigidBody
private void OnMouseDown() { rigidbody.AddForce(30.0f, 0f, 5.0f, ForceMode.Impulse); }
But sometimes a coin goes through walls, but when I increase the speed from 30 to 50 points, it goes through walls from the first click. I googled a lot and still have not received anything except the DontGoThroughThings script, which does not work for me, or I really don’t know how to use it.
I always added continuous dynamics on the coin and continuous collision detection on the walls, but still does not work.
, , ( , ), . , , , , . , 100 1 , , , , , a b, , .
.
, , , , .
, - . , raycast. raycast , , , raycast, , , .
, . , , .
, "". , , gameObjects .
, Rigidbody "Is Kinamatic" False, Is Triggger: false,
"Is Trigger" False.
, , , ,
Source: https://habr.com/ru/post/1524539/More articles:Wix C # Custom Action Fails At All - c #Running node.js script every 10 seconds - javascriptCan the surefire plug-in and fail-safe systematize random execution of test classes? - mavenUse the same controller twice with different data - angularjsВременное объединение в Pandas - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1524540/team-foundation-server-access-to-the-path-is-denied&usg=ALkJrhiSeByTCLNdvOcw6L9LEzKmnrayPgFast moving object passing through other objects - collision-detectionMap ResultSet to Pojo objects - javaExtend your Django custom model with custom fields, recipients, and backend - djangoЭффективно задан ряд в SciPy sparse.lil_matrix? - pythonAll Articles