qwaqwe
(qwaqwe)
February 18, 2017, 3:31pm
1
I have a char and barrel that pushed by char.
I found pitch of char from transform func. And i have direction vector, i got it from locations of char and barrel while Event hit.
Now i need to say to barrel start to move after hit.
I tried simpleMove, MovetoLocation, input movement etc. Nothing, barrel dosn’t want to move. I think i am missing something simple.
I have a char and barrel that pushed by char.
I found pitch of char from transform func. And i have direction vector, i got it from locations of char and barrel while Event hit.
Now i need to say to barrel start to move after hit.
I tried simpleMove, MovetoLocation, input movement etc. Nothing, barrel dosn’t want to move. I think i am missing something simple.
Do you setted the barrel mesh to movable?
qwaqwe
(qwaqwe)
February 18, 2017, 4:18pm
3
Yes.
While different tests i even succeed to move barrel, but it always moved to the same point.
Could you please post an image of your blueprint?
The MoveToLocationOrActor uses Pathfinding . Which only works in areas which have a navmesh.
Do you have a NavMesh Volume set up in your level?
Here is a video explaining it https://www.youtube.com/watch?v=7n7nJ66I8qg
Hope it helps! Good luck!
qwaqwe
(qwaqwe)
February 19, 2017, 9:44pm
7
Thanks.
I used this video in past in order to create dog follow the char. Will look it again maybe will be helpful.
Currently i use addMovementInput and look it works in some way, but sometimes the char start to jump, i saw in other topics that may be caused by physics or overlaping.