Just started with UE4 so probably missing something brutally simple. Basically I’m working on a panel that when hit (usually by a projectile), it rotates around so the player can no longer see it. It will be placed so that a wall will not be visible, basically a very simple target shoot sim where you shoot the panels and they flip down behind a wall.
After a period of time I want it to rotate back.
Here’s an idea of the panel:
The first hurdle I’m coming up against is getting the door to rotate around a specific pivot point or getting the panel to return to the original position reliably.
Tried a number of methods and workarounds but none will work to what I need:
Using physics and a physics constraint to make the panel flip in the direction I need it to - however this doesn’t let me easily rotate the panel back to the position I need it to be in. If I set the rotation of the object back to 0, the panel maintains its velocity and simulates the physics to flip back down. Setting the velocity to 0 doesn’t seem to help…
Using blueprints to make the rotation, using a timeline and Make Rot, fed into Set Relative Rotation does indeed rotate the panel as intended but around the centre of the object.
Reading around on various forums (including this one) I’d need to edit the panel in a 3D program in order to set the pivot point to 0. Seems a little odd that I can’t just change this from UE4 so I’m sure I’m missing a trick here.
A combination of the above in various ways
I can get the panel to destroy itself once hit then replace itself eventually but this won’t work for the flow of the project I’m working on.
Any thoughts from anyone? Basically it’s the same door-hinge thing I’ve seen come up a number of times on the forums but none of these solutions seem to work for my needs.
I should note that this is a class blueprint as I intend to re-use the panels over many levels.