need help im a noob

hi there everyone I am a total noob in unreal engine but I am beginning my journey into game development with unreal engine . a friend of mine who is encouraging me set me a challenge but I do admit I do need help to figure it out . so the objective is this when the player jumps on a box (cube) the cube should change its color. similar to this very poorly drawn picture

I’m not going to code the whole thing here, but you’ll need to make the cube a blueprint, with a collision volume. When the player overlaps, change color :slight_smile:

similar to this very poorly drawn picture

Art is art :person_shrugging:

  • override onComponentHit in the cube and test (cast) if it was the player that hit the cube
  • dot product normalised player velocity with 0,0,1 to find the direction of the hit
  • if dot product < 0, the player hit the cube from the top
  • set new material on the cube mesh, make it pine-green :christmas_tree:
Spoilers