This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Core Library
Containers
Engine Classes
Node-Related Classes
Rendering-Related Classes
Bounds-Related Classes
GUI-Related Classes
Controls-Related Classes
Pathfinding-Related Classes
Utility Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

ShapeBox Class

This class is used to create collision shape in the form of a box.

ShapeBox Class

Members


ShapeBox ()

Constructor. Creates a new cylinder with the zero dimensions.

ShapeBox (const Math::vec3 & size)

Constructor. Creates a new box with given dimensions.

Arguments

  • const Math::vec3 & size - Dimensions of the box in units.

ShapeBox (const Ptr<Body> & body, const Math::vec3 & size)

Constructor. Creates a new box with given dimensions and adds it to a given body.

Arguments

  • const Ptr<Body> & body - Body, to which the box will belong.
  • const Math::vec3 & size - Dimensions of the box in units.

Math::vec3 getSize ()

Returns the current dimensions of the box.

Return value

Dimensions of the box in units.

void setSize (const Math::vec3 & size)

Sets box dimensions.

Arguments

  • const Math::vec3 & size - Dimensions of the box in units.
Last update: 03.07.2017
Build: ()