Skip to content

class_spatial

reduz edited this page Feb 23, 2014 · 10 revisions

Spatial

####Inherits: Node ####Category: Core

Brief Description

Base class for all 3D nodes.

Member Functions

Numeric Constants

  • NOTIFICATION_TRANSFORM_CHANGED = 29 - Spatial nodes receive this notifacation with their global transform changes. This means that either the current or a parent node changed it's transform.
  • NOTIFICATION_ENTER_WORLD = 41
  • NOTIFICATION_EXIT_WORLD = 42

Description

Spatial is the base for every type of 3D Node. It contains a 3D Transform which can be set or get as local or global. If a Spatial Node has Spatial children, their transforms will be relative to the parent.

Member Function Description

Set the transform locally, relative to the parent spatial node.

Return the local transform, relative to the bone parent.

  • void set&#95global&#95transform ( Transform global )

Set the transform globally, relative to worldspace.

  • Transform get&#95global&#95transform ( ) const

Return the gloal transform, relative to worldspace.

  • Object get&#95parent&#95spatial ( ) const

Return the parent Spatial, or an empty Object if no parent exists or parent is not of type [Spatial.

Clone this wiki locally