Hi. I've been messing around with Physics. Gravity is set, but when my falling objet hits the ground, there isn't any contact (searching for the contact through overlapping objects). However, there isn't any. I tried changing the offset but significantly changes the depth of my player on the platform. Suggestions?
Wade physics gravity not jitting ground
MaineMathMan November 23rd, 2016
All 3 Comments
MaineMathMan November 23rd, 2016
Never mind... play with the numbers long enough and you can find something that works....
Gio November 23rd, 2016
Hi
If using wade.physics, I wouldn't try to do collisions yourself by getting overlapping objects. Instead, your falling object should be have a PhysicsObject behavior with body type set to dynamic, and the ground object should have a PhysicsObject behavior with body type set to static.
MaineMathMan November 26th, 2016
That answer didn't address the contact issue. No worries though, I took the hour and wrote my own physics engine to handle a platformer. There were too many problems with characters turning upside down when they didn't hit a platform flush, etc. Now if half my player makes the jump he is put safetly and smoothly put on the platform.
Post a reply
Add Attachment
Submit Reply
Login to Reply