SpiderPig Posted March 30, 2019 Share Posted March 30, 2019 What I have at the moment is the terrain triangles surrounding the player are created from a polymesh (in red). If I set the collision between the terrain shape and the player shape to collide it calls the Collison() callback, but if I set it too trigger it falls straight through without triggering it. The box (in green) is also a trigger an it works flawlessly. Does a trigger shape need to be a volume rather than a group of thin polys? A bit of info on what I'm doing; I am applying a force to the player's shape to simulate gravity, when a collision on the terrain is detected it stops the velocity and keeps the entity at that position until moved by the player. To find the position the player should move too, I get the collision normal, create a plane, and find a position on that plane a little further forward (or backward) then use PhysicSetPosition() to move it there. The problem with the collision set to collide is the player drags across the surface and causes jittering. I need to be able to detect the collision without the physics system actually doing anything. I.e. A trigger. Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted April 4, 2019 Author Share Posted April 4, 2019 @Josh would you have any idea about this? 1 Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted May 12, 2019 Author Share Posted May 12, 2019 So I made the polymesh shape a volume and that still didn't register a trigger event. maybe it doesn't work with polymesh shapes... ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.