Comments (4)
Yeah, physics are weird.
from truecraft.
I'm wondering if all these calls:
+ new Vector3(0.5)
in the PhysicsEngine classes in both the server and the client are partially responsible. This seems incorrect, as the BlockProvider returns a bounding box of [0, 1] by default, not [-0.5, 0.5].
from truecraft.
That's not why. That just moves the item entity to the middle of the block it was mined from. Spasming is because TrueCraft physics are janky.
from truecraft.
Hmm. Because when I removed the '0.5' offset from the Y axis collision, it seemed to stop the problem on the ground (but not in the air)
Edit: Okay, I see what you said about the physics. But I have a few questions:
- Why are entity bounding boxes [Position, Position + Size]? Shouldn't they be [(pos.X - size.X / 2, pos.Y, pos.Z - size.Z / 2), (pos.X + size.X / 2, pos.Y + size.Y, pos.Z + size.Z / 2)]
- What's the reasoning behind these:
entity.Velocity.Z - (TempBoundingBox.Min.Z - collisionPoint.Value));
Shouldn't the velocity on the axis of collision just be 0?
3) Shouldn't the offsetting of the horizontal axes by 0.5 belong in the ItemEntity class, rather than the PhysicsEngine?
4) Shouldn't
collision = position;
Be adjusted to reflect that velocity components less than 0 collide with the max component of the block bounding box, not the min? Also, that some blocks may not have a min point of 0?
5) Shouldn't 'collision' only be assigned when the 'collisionPoint' variable is changed?
from truecraft.
Related Issues (20)
- Finally the Lighting bugs are still there and when digging straight down the world does not load
- Crash on modern ping packet HOT 4
- Mod API Suggestions
- Random crashes and running in the background HOT 2
- SSL certificate of truecraft.io has expired HOT 2
- System.DllNotFoundException: libwebkitgtk-1.0.0.dylib HOT 4
- Building in Monodevelop on Ubuntu HOT 6
- Broken recipies
- [Linux] Failure to Launch HOT 9
- Crash at startup HOT 12
- [Request] a java version of Truecraft HOT 1
- Game Crash HOT 2
- Crash on single player launch HOT 1
- Crash while playing the game
- Another crash while playing the game
- Impossible to tab out of the game
- Broken sky/sun renderer
- Mouse extremly sensitive
- macOS HOT 1
- Crash on Opening a furnace, chest, dispenser windows
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 truecraft.