Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bouncing Ball #93

Closed
zhonghai1995 opened this issue Oct 21, 2023 · 1 comment
Closed

Bouncing Ball #93

zhonghai1995 opened this issue Oct 21, 2023 · 1 comment

Comments

@zhonghai1995
Copy link

zhonghai1995 commented Oct 21, 2023

Hi, I want to simulate a bouncing ball using the sphere mechanism, but I can not get it bouncing. Is this due to the unspport of elastic collision? I have tried all three contact types. Thanks so much!

using Dojo
using DojoEnvironments
using StaticArrays
using Plots

timestep = 0.01

mechanism = get_mechanism(:sphere;contact_type = :nonlinear, timestep=timestep, springs = 20000.0,dampers = 10.0,mass = 10)

initialize!(mechanism, :sphere;position = [0;0;5.0],velocity = [3;2;-5.0],angular_velocity=[1.0;1.0;1.0])

storage = simulate!(mechanism, 5, record=true)

vis = visualize(mechanism, storage)
render(vis)

@janbruedigam
Copy link
Member

Duplicate, see #56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants