[Unreal Engine 5.1] Top Down Shooter EP.2 - Look at Mouse Cursor

[Unreal Engine 5.1] Top Down Shooter EP.2 - Look at Mouse Cursor

Bujny Games

1 год назад

23,645 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Scott Lange
Scott Lange - 27.09.2023 04:15

Heads up for everyone: this is based off of cursor casting a ray, and that ray hitting something. Your character will go nuts constantly changing rotation forward and backward if the cursor does not hit an object, so a quick fix is place a plane beneath your entire map, and tick off visibility so the ray hits a collision, then giving the hit result, but also you do not have an eye sore of a plane sitting there

Ответить
Casey
Casey - 17.09.2023 15:54

Works great with just one issue, if you have multiple meshes at different heights such as grates over a lava pit below, the character starts to glitch out as I believe what's going on is the cursor is sending hits out and registering the different positions of the meshes causing very subtle rotation as it calculates.
Is there any way to turn the cursor hit detection off when over a static mesh?

Ответить
Gufran Yeşilyurt
Gufran Yeşilyurt - 15.09.2023 16:35

Even though orient rotation to movement is disabled, the character does not follow the cursor after moving for a while.

Ответить
Ztorm Sink
Ztorm Sink - 14.09.2023 01:02

Well, my character only move when my curser is over something like a cube (the blue one in default template) or an actor. Otherwise, it does not follow the mouse. Any idea?

Edited: Well to make it work, I had to go in the collision preset of the floor (SM_Cube) and change the preset to "Physical Actor" and now everything is working.

Ответить
Yovry
Yovry - 21.08.2023 09:33

my game glitches out when the mpouse is in the top middle section of the screen. Through print I found that even though the mouse Z axis location should be positive, in this area it can't decide if the location is positive or negative and the rotation glitches out.

Ответить
Nestmind
Nestmind - 14.07.2023 00:14

i can't add the BP to the class setting inerithed interface

Ответить
rahoomeekhalid
rahoomeekhalid - 06.07.2023 22:21

Hotline miami :

Ответить
DaFox
DaFox - 26.06.2023 20:59

Heads up for people who, like me, have the entire thing going CRAZY spinning : Make sure to go to your spring arm and UNcheck "inherit pitch/yaw/roll" or basically everything under "Camera settings".

Also, thanks a lot for this series, really short and helpful :]

Ответить
Sean P
Sean P - 12.05.2023 12:44

So this is easy enough to do, but I am having problems getting it to work with replication, it works fine server side, and client side, but clients do not replicate their rotation to each other or the server, I've tried various methods of getting the rotation to be handled by the server but I am running into a wall with no progress, any suggestions would be much appreciated.

Ответить
Angel DevOps
Angel DevOps - 02.05.2023 20:45

thanks this help me a lot

Ответить
Cedric Son
Cedric Son - 17.04.2023 16:33

I've search for hours in forums and documentations.. your video and explanation was on point and exactly what I needed! You've earned a subscriber! :)

Ответить
HKLabs
HKLabs - 12.03.2023 02:49

If you want the same functionality but only when you click (click to rotate towards mouse position), use Left Mouse Button instead of Tick and drag out from Pressed in Left Mouse Button.

Thanks for the video btw.

Ответить
Winter Witch
Winter Witch - 07.03.2023 17:22

the only thing that confuses me is that when there is an object in the way the character stops following the cursor and goes back to the default position until the cursor is back in view. Anyone got any good tips on how to fix that?

Ответить
TheNomadEpire
TheNomadEpire - 27.01.2023 21:46

i need tis for mobile joystick

Ответить