npruehs / ue4-rts

Real-time strategy plugin and showcase for Unreal Engine 4.
MIT License
747 stars 151 forks source link

Move order #57

Closed GoIiath closed 6 years ago

GoIiath commented 7 years ago

I've got an issue with the move order, When I right clik on another unit my unit move and attack but when i right click the ground my unit is not moving. also can we change the rotate speed when unit have to face the enemy unit ? didn't find anything about that

npruehs commented 7 years ago

Hey @GoIiath , have you added a NavMeshBoundsVolume to your level and built navigation? You can You press P to review your results in the viewport.

Everything related to movement and rotation is built-in Unreal stuff, so I recommend checking the CharacterMovementComponent.

GoIiath commented 7 years ago

Yeah i've added NavMeshBoundsVolume, I also have the green ground when I press P, I'm also using the CharacterMovementComponent, move to attack is working but not simply move

edit : image it look like this

npruehs commented 7 years ago

Do you have any ground to actually click on? Movement orders are calculated by casting a ray: If that ray hits a non-enemy collision shape, it will move to the hit location. Otherwise, it will be unable to determine where you actually want to move (it doesn't just cast the ray against a zero-plane or similar).

GoIiath commented 7 years ago

Yes I have a ground, i used a cube, it have a "glass" texture also just to be clear, do i have to put the RTSplayerStart at the same Z as the green?

npruehs commented 7 years ago

Hmm, is the cube an actor?

GoIiath commented 7 years ago

Nah the cube is just a mesh

npruehs commented 7 years ago

Sounds like a bug or wrong setup (= bad documentation ;) ) Is there any way you can share your project?

npruehs commented 6 years ago

I will close this for now, please get back to us in case you've got anything new.

islamhaqq commented 6 years ago

Did you manage to fix this? @GoIiath

bbt636 commented 5 years ago

I have notice that it doesn't work in a normal mesh but ir does in a brush geometry. I hope this help

coolyoshi commented 4 years ago

Having same issue. @bbt636 what do you mean by brush geometry? Did you manage to fix it?

LegendsofBarcraft commented 3 years ago

Im having a similar issue when you have an actor on a landscape and issue a MoveTo order. The unit does not react, BUT if you do a construction order the unit reacts. I´ve got navmesh built nicely etc... Any ideas? Its working fine on the Plane in the starter project in regards to movement so its weird