Epok Engine

EPOK RUNTIME

epok::gameplay_vector_tween

Function · 1 overload

Function

Performs `gameplay vector tween` as part of the gameplay api module.

Belongs to
epok
Header
gameplay_api.hpp
Overloads
1

Declaration

Declaration
inline GameplayVector3TweenState gameplay_vector_tween(GameplayVector3 from,GameplayVector3 to,Tween timing)

Performs `gameplay vector tween` as part of the gameplay api module.

ParameterTypeMeaning
fromGameplayVector3Value supplied for from. Keep referenced or pointed-to data valid for the complete call.
toGameplayVector3Value supplied for to. Keep referenced or pointed-to data valid for the complete call.
timingTweenValue supplied for timing. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "gameplay_api.hpp"

// Assume these named values have been initialized with valid data:
// GameplayVector3 from
// GameplayVector3 to
// Tween timing

auto result = epok::gameplay_vector_tween(from, to, timing);

Why use it

It provides direct, allocation-conscious access to the gameplay api module. No exception-based error path is implied by the signature.

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/gameplay_api.hpp:127

Related members