Grids#

Grids#

Constructor#

Grids(*, xy, xz, yz)

Just a class to make accessing the grids easier

Properties#

Grids.cast_shadow

Whether this object casts shadows, i.e. whether it is rendered into a shadow map.

Grids.children

tuple of children of this object.

Grids.geometry

The object's geometry, the data that defines (the shape of) this object.

Grids.id

An integer id smaller than 2**31 (read-only).

Grids.material

The object's material, the data that defines the appearance of this object.

Grids.nonlinear_transform

An optional nonlinear transform, expressed as WGSL shader code, applied to the raw vertex positions.

Grids.parent

Object's parent in the scene graph (read-only).

Grids.receive_shadow

Whether this object receives shadows.

Grids.render_mask

Grids.render_order

Per-object rendering priority used to fine-tune the draw order within a render queue.

Grids.up

Relic of old WorldObjects that aliases with the new transform.up direction.

Grids.visible

Whether is object is rendered or not.

Grids.xy

xy grid

Grids.xz

xz grid

Grids.yz

yz grid

Methods#

Grids.add(*objects[, before, keep_world_matrix])

Add child objects.

Grids.add_event_handler(*args)

Register an event handler.

Grids.clear(*[, keep_world_matrix])

Removes all children.

Grids.get_bounding_box()

Axis-aligned bounding box in local model space.

Grids.get_bounding_sphere()

Bounding Sphere in local model space.

Grids.get_geometry_bounding_box()

Grids.get_world_bounding_box()

Axis aligned bounding box in world space.

Grids.get_world_bounding_sphere()

Bounding Sphere in world space.

Grids.handle_event(event)

Handle an incoming event.

Grids.iter([filter_fn, skip_invisible])

Create a generator that iterates over this objects and its children.

Grids.look_at(target)

Orient the object so it looks at the given position.

Grids.release_pointer_capture(pointer_id)

Release the pointer capture for the object that was registered to the given pointer_id.

Grids.remove(*objects[, keep_world_matrix])

Removes object as child of this object.

Grids.remove_event_handler(callback, *types)

Unregister an event handler.

Grids.set_pointer_capture(pointer_id, event_root)

Register this object to capture any other pointer events, until release_pointer_capture is called or an pointer_up event is encountered.

Grids.traverse(callback[, skip_invisible])

Executes the callback on this object and all descendants.