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"

Skeletal mesh collisions

alt textI know this question was asked a few times here, but i didn't find any solution yet that works for me. I created a character BP in my game. Some tipe of a hovering car.

And since it's a character it collisions are controled by a capsule component. However my car doesn't really fit into a capsule, and i need my sceletal mesh car physics asset to take part in collisions aswell.

I've tryed disabling collisions on a capsule and enabling on my mesh instead. But in that case it just ignores all collisions. In overall it's no matter what i do capsule component is the only thing taking part in collisions.

The only way to make it work is to start simulating physics, but in that case my skeletal mesh just drops on the ground like a rag doll.

I know there's a way to use a pawn instead, and probably i will have to do it, but isn't there a way to make it through character BP? Using blueprints and not C++?

Or at least to scale the capsule non uniformly and rotate it?

Product Version: Not Selected
Tags:
pawn.jpg (231.0 kB)
more ▼

asked Oct 12 '14 at 11:23 AM in Using UE4

avatar image

gonzamancg
1 5 8 11

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

1 answer: sort voted first

alt text

Ok so I found the walk around this problem. Maybe somebody will find it useful.

As i understand there's actually no way (if you are not using C++) to make anything except the capsule component in a character BP to generate hit/overlaps events, unless you turn physics simulation on. But in that case you just loose control over your mesh.

So the way i did is I made a dummy mesh (in an overall shape of my ship) and made it physics with limit constrains to the "controlled mesh". In my case i used only linear constrains. Then you can hide original mesh, and you will have physics object to respect the obstacles and move accordingly.

I am enabling/disabling this constrain based on a tracing result of obstacles around my character in a certain distance. If nothing is hit, constrains are just fixed to original mesh, if something is hit, I'm enabling limit constrain so the mesh can be offset instead of overlapping with obstacle.

But since constrains are enabling/disabling thing is a boolean it it makes my ship jump to a new location if a trace is triggered. Plus i don't really wanna play with dummy mesh, I made a copy of original mesh. And used a TInterp_to function to blend my original mesh location and physics dummy location. In result i have a smooth transition from the fixed mesh and simulated mesh.

Probably not the best solution, but works for my game so far :)

P.S. Would be really cool if we can see some changes in options of a Character blueprint thought :) so we can use something else, instead of a capsule.

solved.jpg (245.6 kB)
more ▼

answered Oct 13 '14 at 12:12 PM

avatar image

gonzamancg
1 5 8 11

avatar image gonzamancg Oct 13 '14 at 05:16 PM

This is how it looks by the end. Needs to be tweaked a bit but you can get the idea.

http://www.youtube.com/watch?v=GrlnyT1SB-o&feature=youtu.be

avatar image Halocomander1 Dec 29 '15 at 12:47 AM

Try just turning the skeletal meshs collision physics to complex as simple trace. This should totally fix your collision issue

avatar image gonzamancg Dec 29 '15 at 12:17 PM

Yeah i did try that. It's ignoring any sort of collitions with environment exept the capsule, so it doenst work like that.

(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