Skip to content
nikki93 edited this page Sep 16, 2010 · 2 revisions

The ‘Point’ GameObject is an invisible object that represents a position. You can get its position by obj.getPosition(). This is a great way to specify locations in Blender visually. For example, if you want to call function ‘foo’, which needs a Vector3 parameter, but you don’t want to enter the value numerically, create a Point object in Blender wherever you want it, give it a name, like “fooPoint”, then in the script write “foo(Ngf.getObject(‘fooName’).getPosition()”.

Properties

(none)

Python Events

(none)

Python Properties

(none)

Python Methods

Point exposes the ‘getPosition()’, ‘setPosition()’ and ‘translate()’ methods explained in the Common GameObject Functionality page.

Clone this wiki locally