Iam wondering if Playcanvas also supports some kind of lasergun effect in general? I was looking through some projects and could not find something that fits our needs. Iam wondering if its possable in general to achieve something like this clip (the beam is created in unity3d):
Of course PlayCanvas has no shader Graph but would something like this still be achievable? Does somebody has some ideas / hints?
Hmmm yea - i also thought about this kind of visualization - some kind of sprite sheet animation would also be possible. The thing is, that this beam would have a fixed length in terms of distance - (the distance of the obstacles will variate) so im not sure if this is the best approach for this.
I heard little about Effekseer which is baseically used to create different types of effect (used in THE KING OF FIGHTERS XV game as well and some others too)
The 10 is the maximum rotation and can be whatever value you want. Just make sure the 5 is half of the maximum.
Then in the editor create a new entity, give it the script, then add a long box as a child and shove it all the way to one side until the end of the box is on the new entity.
Then copy that object and paste it back into the original entity as a child (of the new entity, not the box), and shove it all the way to the end of the first box.
This doesnt look that impressive because its a 2 dimensional view from an orthagonal camera. When the beam is placed into a 3d environment it looks like this: