Комментарии:
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
Ответить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?
Even though orient rotation to movement is disabled, the character does not follow the cursor after moving for a while.
Ответить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.
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.
Ответитьi can't add the BP to the class setting inerithed interface
ОтветитьHotline miami :
Ответить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 :]
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.
Ответитьthanks this help me a lot
Ответить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! :)
Ответить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.
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?
Ответитьi need tis for mobile joystick
Ответить