Controller

Inheritance diagram of controller

Module for managing transformation of 3D objects under gravitational interactions.

module

controller

author

Laurent, Jules

author

Le Bars, Yoann

This file is part of the pure Python benchmark.

This Python benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This Python benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

The file LICENSE is a copy of the GNU General Public License. You can also see it on https://www.gnu.org/licenses/.

class controller.Controller(parent: QTransform, space: Space, index: int)

Manage the transformation of 3D objects under gravitational interactions.

Parameters
  • __target (Qt3DCore.QTransform) – Place where the object should move.

  • __space (Space) – Space in which the bodies will evolve.

  • __index (int) – Current body index.

get_target() QTransform

Get the target transformation.

Returns

Current target transformation.

Return type

Qt3DCore.QTransform

set_target(transformation: QTransform) None

Set the target transformation.

Parameters

transformation (Qt3DCore.QTransform) – Target transformation.

update_matrix() None

Update the position based on gravitational interactions.