Giter VIP home page Giter VIP logo

bullet_spring_constraint_demo's Introduction

bullet_spring_constraint_demo

This Bullet example demonstrates an issue of the btGeneric6DofSpring2Constraint regarding the relationship between pendulum length and frequency. The simulation shows 6 pendulums oscillating about a point on the vertical axis through the origin. The 3 upper pendulums (pendulum 1-3) are constrained by btGeneric6DofSpringConstraint, while the 3 lower ones (pendulum 4-6) are constrained by btGeneric6DofSpring2Constraint. It is obvious that pendulum 1-3 oscillate at different frequencies, the shortest with the highest and the longest with the lowest frequency. This is physically correct. However, pendulum 4-6 oscillate at the same frequency indicating a bug in the btGeneric6DofSpring2Constraint resulting in incorrectly simulated dynamics.

Installation Instructions:

  1. Clone bullet from https://github.com/bulletphysics/bullet3

  2. Follow installation instructions on http://bulletphysics.org/mediawiki-1.5.8/index.php/Installation or on Linux do:

	cd path/to/bullet
	mkdir bullet_build
	cd bullet_build
	cmake .. -G "Unix Makefiles" -DINSTALL_LIBS=ON -DBUILD_SHARED_LIBS=ON
	make -j4
	sudo make install
  1. Clone bullet_spring_constraint_demo

  2. Compile bullet_spring_constraint_demo with:

	cd your/path/to/bullet_spring_constraint_demo
	mkdir build
	cd build
	cmake -DBULLET_SOURCE_DIR:STRING=/your/path/to/bullet/source/directory -DBULLET_BUILD_DIR:STRING=/your/path/to/bullet/build/directory ..
	make
  1. Run AppSpringConstraintDemo

bullet_spring_constraint_demo's People

Contributors

trashpirate avatar

Stargazers

 avatar Dimitri Diakopoulos avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.