Timeline for Rendering after interpolating, renders inside/outside other objects
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 19, 2014 at 13:49 | comment | added | William Morrison | @user22241 I've replied. Hopefully it clears everything up here. I think you've done all you should do with this problem. See answer for more details. | |
| Sep 18, 2014 at 20:54 | comment | added | BungleBonce | Hi @WilliamMorrison, OK I've asked another question here: gamedev.stackexchange.com/questions/83650/… if you have any suggestions, that would be great. I can't work out how to get it working - thanks! | |
| Sep 16, 2014 at 13:34 | comment | added | William Morrison | @user22241 Yeah, sure thing. Glad you figured it out! Interested to see the next question. | |
| Sep 15, 2014 at 22:31 | vote | accept | BungleBonce | ||
| Sep 15, 2014 at 22:31 | comment | added | BungleBonce | There still, however, remains the issue of lerping a player going up or down a slope - as far as I can tell, the same logic can't be applied in cases like these because the player is moving left/right and up/down, so the lerping will never 'stop' - in these situations, my character is actually being rendered above or slightly embedded in the slope tiles. However, I will say that for this question, the basic problem for horizontal or vertical collision has been resolved. I'll open another question for sloping and will link it from here if you could take a look - thanks | |
| Sep 15, 2014 at 22:28 | comment | added | BungleBonce | You're absolutely right @WilliamMorrison, I've been over my code and I've realised that there was indeed a problem. The problem now should be resolved. It was an issue with previous and current positions. Now though lerping, effectively stops when the player hits a platform. The first time, lerp will do it's thing, but on subsequent occasions, the difference between the old and new position will be 0 so no lerping happens!! Thanks! | |
| Sep 14, 2014 at 0:46 | comment | added | William Morrison | Yeah, the lerp function might help, I don't expect to see problems there though as its simple. Is the player being rendered hovering above the platform when the player is at a rest? | |
| Sep 12, 2014 at 23:44 | comment | added | BungleBonce | Hi @WilliamMorrison, thanks for the answer. However, as you can see from my diagram, my logic is resolving collision (steps 1 & 2) within one logic update, so, when it gets to render(), the object is reported as sitting nicely on the platform (not in it). However, the lerp function would then alter the object position for rendering purposes. This is where it gets rendered. Would it help if I posted the code I'm using to interpolate between old and current positions? Or maybe you could expand you answer to with a diagram or example to show what you mean if I've misunderstood. Thanks! | |
| Sep 12, 2014 at 13:01 | history | answered | William Morrison | CC BY-SA 3.0 |