DevBlog 4 - Laser Frame Stretching

Published October 28, 2021
Advertisement

With editor ui and a level system integrated, I can visualize my idea for stretching projectiles.

It roughly works like this:

The projectile end points are determined based on delta time, and the distance between them.

The model is offset and scaled so that we can use one tip of the projectile as something like a pivot point

The model is first scaled in local space (eg along z axis) by the distance between the two points.

Then the model is rotated so that it is moving in the correct direction of the projectile.

After rotation, the model is translated to the correct location.

Now the projectile is essentially occupying the space between the last frame's position and the current frame's position.

0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement