Page MenuHome

New BGE gravity API
Closed, ResolvedPublicPATCH

Description

This patch adds a new "gravity" attribute to the KX_scene, which allow to get and set the scene gravity.

I have done this patch because i found a proposal from Monster.
http://blenderartists.org/forum/showthread.php?258359-BGE-proposal-Python-access-to-the-current-gravity&highlight=proposal

Event Timeline

Please document the new attribute in doc/python_api/rst/bge.types.rst.

I have documented the new attribute now.

Committed as r52059. Thanks for the patch. :)

Mitchell Stokes (moguri) changed the task status from Unknown Status to Resolved.Nov 10 2012, 4:11 AM