Godot Engine

Godot Engine

Ways to check collision of player with ground?
Without RayCast 2D
Can someone link me to good tutorial about it?
Naposledy upravil Roman Richter; 10. bře. 2016 v 2.28
< >
Zobrazeno 16 z 6 komentářů
With good explanations if possible.
molamar původně napsal:
RigidBody with CollisionShapes:
https://www.youtube.com/watch?v=LCscuMhFNCU&index=2&list=PLPI26-KXCXpBtZGRJizz0cvU88nXB-G14

In next video he use RayCast2D to check collision of player with ground.
Akien  [vývojář] 10. bře. 2016 v 22.34 
What's wrong with using raycasts?
Akien původně napsal:
What's wrong with using raycasts?
1. Detection counts over the entire height as result ground will be detected before character lands on ground.
2. Detection works only for physical ray height and width(width can't be changed) and this can cause problems for angled surfaces and in caises if character stays on surface edge but raycast not collide with surface.
test_move in kinematic body is an ideal replacement for raycast
< >
Zobrazeno 16 z 6 komentářů
Na stránku: 1530 50

Datum zveřejnění: 10. bře. 2016 v 2.06
Počet příspěvků: 6