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"

My FConstraint Instance / UPhysicsConstrainComponent doesnt work in 4.14

So the following used to work in 4.12.

 FConstraintInstance  ConstraintInstance;

Now that I have upgraded the project to 4.14, when I create a FConstraint Instance I get the error message, "incomplete type is not allowed."

Also my UPhysicsContraintComponent gives me a ton of "pointer to incomplete class type is not allowed" error messages.

I'm guessing they may have to be initialised differently now?

My Declaration

         UPhysicsConstraintComponent* PConstrain;

My Definition

     //Setting the constraint parameters of our Constraint Instance
     //Limiting the linear motion, Setting the limit size and setting the soft limit to true. Disabling Breakable option in order to ensure we get a rope kind of tug
     //ConstraintInstance.LinearXMotion = ELinearConstraintMotion::LCM_Limited;
     //ConstraintInstance.LinearYMotion = ELinearConstraintMotion::LCM_Limited;
     //ConstraintInstance.LinearZMotion = ELinearConstraintMotion::LCM_Limited;
     ConstraintInstance.LinearLimitSize = 10.0f;
     ConstraintInstance.bLinearLimitSoft = true;
     ConstraintInstance.bLinearBreakable = false;
     //Setting the linear soft limit, the stiffness and the damping
     ConstraintInstance.bLinearLimitSoft = 0;
     ConstraintInstance.LinearLimitStiffness = 0;
     ConstraintInstance.LinearLimitDamping = 10;
     ConstraintInstance.bAngularBreakable = false; 
     //ConstraintInstance.AngularSwing1Motion = EAngularConstraintMotion::ACM_Limited;
     //ConstraintInstance.AngularSwing2Motion = EAngularConstraintMotion::ACM_Limited;
     //ConstraintInstance.AngularTwistMotion = EAngularConstraintMotion::ACM_Locked;
     //Initialising a Physics Constraint Component
     PConstrain = CreateDefaultSubobject<UPhysicsConstraintComponent>(TEXT("Physics Constraint Component"));
     PConstrain->AttachToComponent(CrainSlider, FAttachmentTransformRules::KeepRelativeTransform, NAME_None);
     PConstrain->ConstraintInstance = ConstraintInstance;
     PConstrain->SetConstrainedComponents(CrainSlider, NAME_None, CrainWire, NAME_None);
Product Version: UE 4.14
more ▼

asked Nov 29 '16 at 08:07 PM in C++ Programming

avatar image

21 1 7

avatar image Huolynn Sep 11 '17 at 06:25 AM

Have the same problem. Have you found a solution?

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

1 answer: sort voted first

In hindsight, as I've deleted this Repo anyway. But I would have assumed this was a IWYU problem.

more ▼

answered Oct 24 '18 at 12:32 PM

avatar image

21 1 7

(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