PDA

View Full Version : Stopping gravity whilst falling.


TarkaDahl
11-14-2011, 02:08 AM
Hi,

Im working on a program where you walk around and when you click on an object you can then pivot navigate around that object.

That works fine unless you are falling when clicking on an object.

Ive create an example to simulate the problem.

Walk onto the fountain and fall off, whilst falling click on the button.

Gravity is still applied, is there any way to stop this.

Thanks

Jeff
11-16-2011, 05:01 PM
I'm not sure I understand the question. What are you expecting the viewpoint to end up when the button is pressed while falling?

TarkaDahl
11-17-2011, 02:05 AM
Hi

Sorry maybe i didnt explain the problem well enough.

I have created i scene where you walk around and click on objects. When you click on an object you then pivot navigate around that object.

It works fine most of the time but occasionally if the person is walking down a slope(which i cant remove) and clicks on an object the pivot camera has the gravity still appied to it.

The best way to consitantly recreate the problem is to click on an object whilst falling.

To simplfy the problem in the example code i have removed the clicking on the object with a button and i dont position the pivot navigate camera. The gravity still is applied to the camera.

Thanks