Comments (3)
Could you please upload a sample?
from box2dsharp.
world = new World { Gravity = new System.Numerics.Vector2(0, -100), AllowSleep = true };
BodyDef bodyDef = new BodyDef { GravityScale = 10f, };
world.Step(1f/50f, 10, 10);
Sorry for the delay.
from box2dsharp.
Your sampl works well, my guess is that you did not call World.Step method at a fixed frequency, see FrameManager
from box2dsharp.
Related Issues (12)
- Unity test. HOT 3
- World.Locked,并发问题。 HOT 3
- 世界快照功能 HOT 3
- Some problems running on MacOS HOT 6
- 安卓端报Fail,没有找到原因
- 无法访问已释放的对象 HOT 7
- 对象池优化 HOT 4
- 目前的性能是怎样的? HOT 1
- Performance when using `in` arguments with Vector2 HOT 2
- Slow moving Body never sleeps, different compared to original Box2D HOT 10
- 'EdgeShape' does not contain a definition for 'Set' and the best extension HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from box2dsharp.