MindVisceral / EZGame

1 stars 0 forks source link

Raycast bullet trails #8

Closed MindVisceral closed 10 months ago

MindVisceral commented 10 months ago

RayCast bullets leave a trail when shot

MindVisceral commented 10 months ago

Implemented as of 2023/12/4

Implementation: When a RayCast weapon shoots, a RayCast "bullet" is created; A cylinder Mesh is instantiated - placed, rotated, and stretched between the start and end positions A semi-transparent, coloring Shader is applied The AnimationPlayer animates the Mesh by streetching its dimension and deletes the whole Trail Node after some time