I've recently created a door that uses the BodyForce object to open. It is basically a big block that slides in between two walls. It's Very similar to a pocket door if any of you are familiar with them in real life.
Anyways, my script works fine. (It's button activated) On a click, one value in the force vector is changed to a positive number, (to open the door) a certain amount of time passes, and then the value is changed to the negative of that same number. (to slide the door back into position)
I've isolated each event while testing in solo mode to make sure that the script is actually changing the values, and sure enough, when I check the force property of the BodyForce object, they all work. What really baffled me was the force didn't actually go into effect until my player touches the door. At first I thought it wasn't enough force, but when I changed the value to some really large number it just flung the door out of the frame when my player touched it.
I've noticed that the catapults on the free models work just fine without the player touching the powerblock on the arm of the catapult. What makes them any dfferent from my pocket door? |