Epok Engine

EPOK RUNTIME

epok::bp::api::make_transform

Function · 1 overload

Function

Performs `make transform` as part of compiled Blueprint execution and object interaction.

Belongs to
epok::bp::api
Header
blueprint_api.hpp
Overloads
1

Declaration

Declaration
inline Transform make_transform(const Vector<3>& position,const Vector<3>& rotation,const Vector<3>& scale)

Performs `make transform` as part of compiled Blueprint execution and object interaction.

ParameterTypeMeaning
positionconst Vector<3> &Value supplied for position. Keep referenced or pointed-to data valid for the complete call.
rotationconst Vector<3> &Value supplied for rotation. Keep referenced or pointed-to data valid for the complete call.
scaleconst Vector<3> &Value supplied for scale. Keep referenced or pointed-to data valid for the complete call.

Returns: Transform. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "blueprint_api.hpp"

// Assume these named values have been initialized with valid data:
// const Vector<3> & position
// const Vector<3> & rotation
// const Vector<3> & scale

auto result = epok::bp::api::make_transform(position, rotation, scale);

Why use it

It provides direct, allocation-conscious access to compiled Blueprint execution and object interaction. No exception-based error path is implied by the signature.

Trade-offs and warnings

Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/blueprint_api.hpp:22

Related members