{"id":174,"date":"2023-05-14T03:58:19","date_gmt":"2023-05-14T02:58:19","guid":{"rendered":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/?p=174"},"modified":"2023-05-14T03:58:19","modified_gmt":"2023-05-14T02:58:19","slug":"bsc1b-week-5-developer-journal","status":"publish","type":"post","link":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/2023\/05\/14\/bsc1b-week-5-developer-journal\/","title":{"rendered":"BSc1b week 5: Developer journal"},"content":{"rendered":"\n<p>This week was continuing work on the unreal fundamental tasks with finally getting the fireball working and fixing the bug of bullets not being destroyed when hitting other actors.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"262\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/working-fireball-and-gun-gif.gif\" alt=\"\" class=\"wp-image-177\"\/><\/figure>\n\n\n\n<p>This gif shows both the working fireballs and the fix to the guns bullets now being destroyed when they collide with anything in the world. It also shows that the interaction with the doors is also still present with both the fireball and bullet as the door opening is still just any actor overlapping to open.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"404\" height=\"113\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Bullet-destroy-on-colliding-with-another-actor.png\" alt=\"\" class=\"wp-image-178\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Bullet-destroy-on-colliding-with-another-actor.png 404w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Bullet-destroy-on-colliding-with-another-actor-300x84.png 300w\" sizes=\"auto, (max-width: 404px) 100vw, 404px\" \/><\/figure>\n\n\n\n<p>This shows the simple fix for destroying the bullet when it begins overlapping with anything in world it destroy the bullet actor. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"282\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Fireball-spell-blueprint-in-player-1024x282.png\" alt=\"\" class=\"wp-image-179\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Fireball-spell-blueprint-in-player-1024x282.png 1024w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Fireball-spell-blueprint-in-player-300x83.png 300w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Fireball-spell-blueprint-in-player-768x212.png 768w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Fireball-spell-blueprint-in-player.png 1451w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This is the fireball spell which is done within the player as I couldn&#8217;t find a way to have it summon the fireball correctly when handling the input and spawning outside of the player blueprint. This works by getting the camera rotation as a rotator for a rotate vector with an X of 100 which is added to the players location. This location along with the camera rotation before and a scale of 1 in all axis to calculate the spawn transform location of the fireball actor. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"389\" height=\"107\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Fireball-spell-destroy-when-collide-with-another-actor.png\" alt=\"\" class=\"wp-image-180\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Fireball-spell-destroy-when-collide-with-another-actor.png 389w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Fireball-spell-destroy-when-collide-with-another-actor-300x83.png 300w\" sizes=\"auto, (max-width: 389px) 100vw, 389px\" \/><\/figure>\n\n\n\n<p>Finally like the bullet the spell has a destroy actor linked to when it overlaps with anything in the world. This is done in the spell blueprint meaning if I wanted to create any other spells that functionality wouldn&#8217;t have to be recreated every time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week was continuing work on the unreal fundamental tasks with finally getting the fireball working and fixing the bug of bullets not being destroyed when hitting other actors. This gif shows both the working fireballs and the fix to the guns bullets now being destroyed when they collide with anything in the world. It [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-devlog"],"_links":{"self":[{"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":1,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"predecessor-version":[{"id":181,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/174\/revisions\/181"}],"wp:attachment":[{"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}