Blueprint: Actor Enable/Disable Collision/Simulate Physics bug?
I have an issue with the Set Actor Enable Collision and the Set Simulate Physics methods when i am trying to toggle between them.
Also i am unable to teleport/change location for an entity once the Set Simulate Physics is set to true.
I am unable to disable the Collision and the Physics simulaton on an actor after these methods are set.
This is my Actor Setup:
Your setup looks correct to me with one exception: you're setting the Physics on the Cube component, but moving the Actor. So when physics are simulated on the Cube, it separates from the location of the Actor root (a scene component), and the Actor ceases to be movable with Set Actor Transform. I'm going to look further into this to see if there's a bug involved in that, but it's not the ideal way to set this up regardless.
Instead, you can do one of two things:
Give that a shot and let me know if that solution works for you.
As a side note, this was fun to play around with. Without knowing what you're looking to do with this functionality, you may also want to look into physics handles or, conversely, restricting physics to planes when turning physics on to drop it (right now you can throw the object, if you want). Also: you might want to throw a check in there to disable the right-click functionality when the DraggedProp variable is valid, because right now it leaves the Actor hanging in the air.
Hope that helps!
answered Apr 27 '15 at 09:10 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here