Trying to make pic related, but can’t figure out the best way to do it. I do have it somewhat functional but its a prototype at best. It’s pretty much the pic related, all server side. I go from step 1 to 2 by shooting a ray up with a length of 15. if it hits something then i just lerp up to it and if not then lerp 15 units up. Since this is server sided, it is a bit jittery. im thinking i can do the same for step 3-4. I was thinking that i could do step 1-2 client, do the raycast server side to ensure that it’s valid, then do the fly and slam on client but it’s a lot of back and forth so im looking for a better solution.
2 Likes
You could do it with align positions, it would make it easy and pretty smooth.
1 Like
Unless you add proper easing curves and stuff, doing things like this will look pretty rigid using only code. Your best bet would probably be to make an animation then use code to offset player if it hits a wall or something.
1 Like
Ended up using tweens + animations, pretty smooth on client side
2 Likes