x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Collision detection with BSP walls?

Am using a lerp vector in my dash ability but my character is going through walls and objects. I didn't use Launch Character as I dont quite like the movement even though it provides good collision with walls and objects.

Is there a way to check for collision with BSPs and objects?

Product Version: UE 4.10
Tags:
more ▼

asked Mar 19 '16 at 04:40 PM in Blueprint Scripting

avatar image

arronnax
34 10 10 11

avatar image Black Phoenyx Mar 20 '16 at 10:51 AM

Quick question....I threw this together really quick but is this the behavior you are trying to achieve?

Something like this:

https://youtu.be/BPPdQs1c4rE

I made a super cheesy anim for the dashing ignore that.

avatar image arronnax Mar 20 '16 at 11:47 AM

YES! I am trying to do just that! Except mine's using First Person but I believe that's not going to be anything major.

Sorry I wasn't clear about it initially. In other words:

  1. If player is in front of a solid object or a BSP wall, dash does not activate.

  2. If player encounters a solid object or a BSP wall while dashing, he will stop.

Nah don't worry about the animation. It's quite cool actually.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Well with what I put together the dash still activates if player is in front of a solid object just they don't go anywhere...they continue to collide normally...minus all the particles and animation cheesiness here is what I did in a nutshell:

Input for Dash Pressed -> Get Character Movement ---Set Max...ahhh a screenshot will be better:

alt text

more ▼

answered Mar 20 '16 at 11:59 AM

avatar image

Black Phoenyx
4.1k 165 9 170

avatar image arronnax Mar 20 '16 at 12:17 PM

Ahh ok. I didn't know I can simply modify the speed property in Character Movement to do a dash...lol that would have saved me a lot of pain.

Maybe you can take a look at how I did. I have a feeling that doing the dash via Character Movement would have more proper collision. Do you think with my current method I'll still be able to check for collision with BSPs?

Btw, another question if you dont mind...how do you do those pins on the lines connecting your nodes such that they curve a certain way?

alt text

dash lerp.png (349.7 kB)
avatar image Black Phoenyx Mar 20 '16 at 12:23 PM

You could try checking the sweep bool...but otherwise no, you won't, because you are setting the location and if the location is within or just beyond an object it will be set to that location there isn't anything to stop it from setting the location because it is a set location.

avatar image arronnax Mar 20 '16 at 01:06 PM

Man the sweep bool really works! Thanks a lot for your help!

At least now I've another - and also easier - way to do a dash.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question