WohlSoft / MiniPhysics-By-38A

A tiny physical engine made by 5438A38A in VB6 and ported into C++ with Qt and improved by Wohlstand
GNU General Public License v3.0
4 stars 1 forks source link

Issues with physics demos #1

Closed Alucard648 closed 7 years ago

Alucard648 commented 8 years ago
  1. Walking up 45 degree slopes sometimes resets horizontal velocity.
  2. Character can eventually nudged off from circular moving platform.
  3. I think, that FPS counter is needed as QT demo is a bit laggy on my PC. specs
  4. Also, speed-adding stack demo should have an option to add non-moving blocks (H-speed = 0)
  5. Also playable block don`t get pushed sideways when a solid moving block pushes him into slope block. slope_push
Wohlstand commented 8 years ago

About 3 - It's no lag, it's large timer interval to have watching physics more detailed About 4 - that must be applied to dynamic objects, most of blocks here are static: wall, floor, celling, etc. and there are can't be affected by dynamic objects. Except destroying :laughing: EDIT: that speed-adding demo made once just an implementation of algorithm to let me implement it into main demo About 1, 5 - just an imperfections which I working now About 2 - that because I must also apply modified Y speed which doesn't doing here. I bet in SMBX 1.3 and SMBX-38A will be same with round-rotating blocks (attached to firebars) EDIT: in SMBX 1.3 fine, but moving layer which attached to moving firebar is bit lags, but in SMBX-38A result is very buggy :yum:

Wohlstand commented 7 years ago

Everything here has been fixed

Alucard648 commented 7 years ago

You missed #5

Wohlstand commented 7 years ago

5 is almost fixed, except you are staying on corner, but fine if you staying on slope without touching corner. This is another thing which also refering to another bug when character fell between slope corners, and speed going to be zeroed.