Originally posted by mindfane
View Post
Announcement
Collapse
No announcement yet.
Event hit dont fire when one Actor moves into another Actor.
Collapse
X
-
Originally posted by Battou View PostI can trace, but how much performance cost trace have? I thought about constant trace ahead before, but I'm afraid that it will be big performance hit.I expected challenges - but I never thought they'd be so bad, so long, and so frequent.
Comment
-
Originally posted by mindfane View PostThing is, you only need to do a trace when an overlap happens. So it might not be a huge hit on performance. Then again it depends on how frequent overlaps happen. Anyway just try this and see if it works. If it hits performance significantly, we can some up with something else.
Comment
-
Originally posted by Battou View PostIt actually works. Thanks. (But still wandering why cant use EventHit) But now I stumbled another problem. I wanted to use hit normal to catculate angle between Actor forward vector and wall normal to calculate sliding collision, so Actor wont stop if wall isn't perpendicular but slow slide along the wall. I can calculate angle, but I don't know how to determine to witch side to slide because angle always positive. Any suggestion? Maybe there are some another way to make sliding collision?I expected challenges - but I never thought they'd be so bad, so long, and so frequent.
Comment
-
Originally posted by mindfane View PostConvert the Forward vector and Wall normal into a Rotators and calculate Delta. Check the Yaw part of the resulting rotator. It should have postive and negetive values depending on the angle difference.
Comment
-
Originally posted by Battou View PostIt works great in 2D (mowing in XY plane), but I'm aming on 3D space movement, and then delta calculated in world axises wich in same collision but when both actors turned for example 90 deg and looking up, will give delta in wrong axis. Any way to get that delta in some actors local space axises?
https://answers.unrealengine.com/que...ooking-at.html
Checkout that post. Looks at the accepted answer. Pay attenstion to the right-most pasrt of the blueprint.I expected challenges - but I never thought they'd be so bad, so long, and so frequent.
Comment
-
Originally posted by mindfane View PostHave you tried Acosd node? It is supposed to work in this case.
https://answers.unrealengine.com/que...ooking-at.html
Checkout that post. Looks at the accepted answer. Pay attenstion to the right-most pasrt of the blueprint.
Comment
-
Originally posted by KillerSneak View PostFrom the component screen you should attach the hit event to the collision sphere -> now you have a hit event to nothing. -> Right Click Sphere1 in the above screenshot and add a hit event (On component hit) to it that way the hit event counts for your spehere.
Comment
Comment