Closed fierceeo closed 3 years ago
Nm, I guess the issue about falling through the floor fixed itself. (The difference in code is still an issue) Just now I'm getting this issue when I talk around:
odd it looks like this only happens when I jump up reasonably high
so I think I fixed the issue by changing line 36 in PhysicsChunkPager.java to this: if (chunk == null || chunk.getCollisionMesh() == null || physicsSpace == null || chunk.getCollisionMesh().getTriangleCount() <= 0) {
Yes, this is a known issue. It's discussed here. The physics library can't handle empty mesh objects. The check you added is correct, I will fix this in the next release.
Concerning the 'falling through the floor' and jumping issues, I recommend you open a thread on the jMonkeyEngine forum. The things you describe are physics related (Minie library) issues and I'm not an expert on that matter.
I created a hotfix for this bug and released a new version. If you bump your version to 1.6.4 the issues should be resolved.
Thank you :). So I tested it, and it seems to work fine now.
I am using the latest version of the blocks lib (1.6.3) and for some reason when running my code my player falls though a chunk. I have
PhysicsChunkPagerState physicsChunkPager = stateManager.getState(PhysicsChunkPagerState.class); physicsChunkPager.setLocation(new Vector3f(cam.getLocation()));
put in the simpleUpdate method and this:stateManager.attachAll(new ChunkManagerState(chunkManager), new ChunkPagerState(chunkNode, chunkManager), new PhysicsChunkPagerState(getPhysicsSpace(), chunkManager));
and this:BlocksConfig.getInstance().setPhysicsGrid(new Vec3i(3, 1, 3));
in my simpleInitApp method.I suspect that it has to do with this piece of code which for some reason is different then the code on github:![image](https://user-images.githubusercontent.com/48343703/101998651-fabfec00-3c89-11eb-8211-280e6a4ab35e.png)
If it helps, I here is my pom.xml file: ` <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
`
Thank you :)