PlaceholderGames / 2016-VnD_Game

2nd year computer games development group project
2 stars 0 forks source link

Ant should follow a block as it shrinks (Digging) #68

Open rbakerusw opened 7 years ago

rbakerusw commented 7 years ago

Currently, when a block is being dug the ant does not move with it. We should set it so the ant follows the block as its being dug to make it more visually appealing.

Here is an example of the issue: movementbug

napiorek commented 7 years ago

It turns out that with latest version the ant does follow the block, although it only work in vertical mode (digging) image

napiorek commented 7 years ago

For mining(horizontal) we would have to update the pos of the ant correspondingly to shrinking cube to make the illusion that ant follows the block

rbakerusw commented 7 years ago

I was talking to Tom about this and he suggested that when you trigger the digging, to perform ray casting to detect the distance of the block and when the distance gets too high move the ant forward so it always maintains the correct distance.

rbakerusw commented 7 years ago

I will try to fix this issue.

rbakerusw commented 7 years ago

Hey guys, i was wondering if you could help me with something I was using a ray tracer to try and calculate how far the block is away from the ant but I am not sure how to calculate the distance using the ray tracer. For now I am going to do a simple implementation that just makes the ant move forwards.

rbakerusw commented 7 years ago

I run into a slight problem, I tried to move the ant but I couldn't get it to move successfully. I'm not sure what is preventing it from moving, I have uploaded what I have done so far. All the code is within the animation switcher macro for now.

rbakerusw commented 7 years ago

I have tried to implement a basic version of this but when I use the blueprint SetActorLocation its seems to have no effect on the location of the ant. Im not sure what is causing it not to move.