DeckStacker v1.0
A card manager plugin for Unity games.
 
Loading...
Searching...
No Matches
DeckStacker.DSVector3Curve Class Reference

Public Member Functions

Vector3 Evaluate (Vector3 firstVector_, Vector3 secondVector_, float t_)
 
Vector3 Evaluate (float t_)
 
void SetVectors (Vector3 firstVector_, Vector3 secondVector_)
 

Data Fields

bool localVector = false
 

Properties

Vector3 firstVector [get, set]
 
Vector3 secondVector [get, set]
 

Detailed Description

A class that helps with Lerp-ing Vector3s on a per-axis basis, using curves, rather than all axis at once.

Member Function Documentation

◆ Evaluate() [1/2]

Vector3 DeckStacker.DSVector3Curve.Evaluate ( float t_)
inline

If you are not updating the vectors every frame, you can set the vectors with SetVectors and this Evaluate overload will keep those.

◆ Evaluate() [2/2]

Vector3 DeckStacker.DSVector3Curve.Evaluate ( Vector3 firstVector_,
Vector3 secondVector_,
float t_ )
inline

Input a starting vector, an ending vector, and a t variable, and returns lerp of all 3 axis.

◆ SetVectors()

void DeckStacker.DSVector3Curve.SetVectors ( Vector3 firstVector_,
Vector3 secondVector_ )
inline

Sets firstVector and secondVector, respectively.

Field Documentation

◆ localVector

bool DeckStacker.DSVector3Curve.localVector = false

A flag that can be used to identify if values are intended to be local or worldspace.

Property Documentation

◆ firstVector

Vector3 DeckStacker.DSVector3Curve.firstVector
getset

This is the vector3 represented by Y=0 on the curves.

◆ secondVector

Vector3 DeckStacker.DSVector3Curve.secondVector
getset

This is the vector3 represented by Y=1 on the curves.


The documentation for this class was generated from the following file: