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"

Physics Constraint "SetDisableCollision" Doesn't work second time on same objects

Physics Constraint "SetDisableCollision" function works the first time on two objects, but after deleting the constraint and creating a new one, it now won't disable collision anymore. seems like an engine bug but maybe i am missing something?

It does work only one time with each pair of constrained objects. in my case there are two actor classes - X and Y. each time they get close at some angle, i create a temp constraint for them which i delete after some event and let them free.

x1,x2,y1,y2 are instances of the classes.

x1+y1 get constrained the first time and SetDisableCollision works fine. the second time x1+y1 get constrained and SetDisableCollision fails.

when x1 however meets y2, SetDisableCollision works fine again. then second time of these two fail.

when x2 meets y1 and y2, same behaviour. even if one of them failed with x1 before, it will work the first time with the new x2.

the above situation proves this "bug" happens only on pairs of objects and not on one specific amongst them.

Product Version: UE 4.20
more ▼

asked Dec 18 '18 at 04:42 PM in Blueprint Scripting

avatar image

848 18 40 59

avatar image Arty-McLabin Dec 18 '18 at 04:54 PM

same effect if i have only one constraint that breaks and connects each time rather than creating new one for each pairing and deleting after break.

avatar image Arty-McLabin Jan 26 '19 at 01:07 PM

bumpy bump

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

shitty facepalm workaround solution:

after each constraint break - duplicate one of the meshes, delete the original mesh and replace all it's references and relations with the new duplicated one. result: upon creating a new constraint, it will be considered as a new pair and will work as if first time.

more ▼

answered Apr 13 '19 at 07:36 PM

avatar image

848 18 40 59

(comments are locked)
10|2000 characters needed characters left
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