Well, this is getting slightly beyond the scope of the original lecture. But I’m up to this part now anyway… so. Yes it looks basically like that:
I have the top-level (spring) constraint as the root, the axle parented to that, and the axle constraint and wheel parented to the axle:
I’m now getting these weird console messages (when it is used on the tank) about the constraints themselves and the physics not being set up correctly:
PIE: Warning: Constraint in '/Game/Experiments/UEDPIE_0_PhysicsTest.PhysicsTest:PersistentLevel.SprungWheel_BP_C_0.AxleConstraint' attempting to create a joint between objects that are both static. No joint created.
PIE: Warning: Invalid Simulate Options: Body (SprungWheel_BP_C_0.Axle) is set to simulate physics but Collision Enabled is incompatible
PIE: Warning: Invalid Simulate Options: Body (SprungWheel_BP_C_0.Axle) is set to simulate physics but Collision Enabled is incompatible
I have the wheel set to Custom collision profile, with collision enabled (query + physics). It’s not clear to me what the correct mode for the Axle should be but the tank either flips violently (OverlapAllDynamic) or just falls through the floor (same mode as wheel).