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"

Custom convex shape sweep test?

Hey guys.

I'm making a custom physics routine for my platformer. I want to represent the player as a diamond that can change in shape (Grow left/right/up/down). My only requirement for doing this is being able to do a sweep and overlap test against the static world with a custom convex shape. FCollisionShape is used for sweep tests, but doesn't seem to support a custom convex shape, only the primitive boxes, capsules, and spheres.

I could work around this problem if I could do a sweep test with a line, but I don't think I can do that either, only with a point.

Does anybody know how to accomplish this?

Product Version: UE 4.10
Tags:
more ▼

asked Jan 07 '16 at 10:07 PM in C++ Programming

avatar image

downsider
6 1 2 3

avatar image downsider Jan 11 '16 at 02:13 AM

I ended up doing this myself by modifying FCollisionShape to support a PhysX convex hull object. No clue why this support isn't already in there, you'd figure someone else would have wanted to do something like this a long time ago!

avatar image AllJonasNeeds May 30 '16 at 02:25 PM

It would be great if the support for that would already be there, because I am an inexperienced programmer and I don't know how to do that. So I will have to look for a different solution.

avatar image Zoc Jul 12 '16 at 03:59 AM

@downsider, Can you, please, share this solution? :) Sadly, it's not trivial for those of us not used to PhysX SDK :(

avatar image Sooth Nov 09 '17 at 09:16 PM

FCollisionShape to support a PhysX convex hull, can you share the code?

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

0 answers: sort voted first
Be the first one to answer this question
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