
############
applyGravity
############

.. js:function:: wv.Operators.Camera.applyGravity

   .. rst-class:: sig-pretty-signature
   
      | applyGravity(**view**\ : :js:class:`IView <wv.IView>`\ , **pointObject**\ : :js:class:`Point3 <wv.Point3>`\ , **downVector**\ : :js:class:`Point3 <wv.Point3>`\ , **maxFallDistance**\ : (*None* | *number*\ )): *Promise*
   
   This returns the final position of a point object when gravity is applied. If there are no floors to collide with, null is returned.
   
   It is the caller's responsibility to interpolate smooth motion if desired.
   
   **Parameters**
   
   
      **view**\ : :js:class:`IView <wv.IView>`
   
   
         The ``View`` of the scene.
   
   
      **pointObject**\ : :js:class:`Point3 <wv.Point3>`
   
   
         The point object to fall.
   
   
      **downVector**\ : :js:class:`Point3 <wv.Point3>`
   
   
         The vector used to determine the direction of fall.
   
   
      **maxFallDistance**\ : (*None* \| *number*\ )
   
   
         If the fall distance would exceed this value, then gravity is not applied at all.
   
   
   
   **Returns**\ : *Promise*
   




