0%

Physics collide

This example (source in https://github.com/cogentcore/lab/tree/main/physics/examples/collide) demonstrates the collision dynamics of different shapes. Do Rebuild after changing shapes or other parameters such as friction. The Cylinder and Cone shapes are not well supported for collision.

The pusher target position slider at the bottom controls how much force is imparted by the pusher “paddle” that hits the first object.




Replica:

Shape A

Sphere

Shape B

Sphere

Size A

Size B

Mass A

Mass B

Zpos A

Zpos B

Push mass

Friction

Friction tortion

Friction rolling

Iterations

Dt

Sub steps

Control dt

Control dt thr

Contact margin

Contact relax

Contact weighting

Restitution

Joint linear relax

Joint angular relax

Joint linear comply

Joint angular comply

Angular damping

Soft relax

Max force

Max delta

Max geom iter

Contacts max

Cur

Next

Bodies N

Dynamics N

Objects N

Max object joints

Joints N

Joint do fs N

Body joints max

Body collide pairs N

Gravity

X

Y

Z


Rot:


Pan:


Save:


Not selectable

Pusher target position: