age-of-asparagus/godot3-3dgame

Things to deal with or clean up in future episodes

Opened this issue · 6 comments

  • Obstacle Shader foreground color off by 1
  • Type hints vs type casting
  • Player controller stuff in the level's "main" script
  • CSG box collisons not stopping fast bullets (extend the Collision Shape to about 3x z-axis width so it extends in front and behind)
  • Enemy getting the nav node and the player
  • translation vs global_transform.origin
  • Add grid to floor
  • Shooting offset from mouse cursor (add or subtract the "hand" position)
  • ALso shooting not just using floor, but colliding with enemies and obstacles.

The "wave" script is called Node.gd

Shooting offset:

Have the "hand" also look at the point:

onready var hand = $Player/Body/Hand

hand.look_at(look_at_me, Vector3.UP)

But does weird thing when close, so only do it if it's not close:

if (hand.global_transform.origin - look_at_me).length() > 3:
				hand.look_at(look_at_me, Vector3.UP)

Why use gloabal_transform with and hand translation for player? ... Cus, well, we shouldn't have! haha. Hey, Mr Asparagus here is learning along with you folks!

(Explanation of origin vs translation)