engine
 
载入中...
搜索中...
未找到
类 | Public 成员函数 | 所有成员列表
TSpring1D< FloatType > 模板类 参考

One-dimensional spring simulation 更多...

#include <SlateSprings.h>

类

class  FSpringConfig
 Spring configuration 更多...
 

Public 成员函数

FloatType GetPosition () const
 Gets the current position of the spring 更多...
 
FloatType GetTarget () const
 Gets the target position 更多...
 
bool IsAtRest ()
 
void SetConfig (const FSpringConfig &InConfig)
 Sets the config for this spring 更多...
 
void SetPosition (FloatType InPosition)
 Sets the current position (and target position) for the spring 更多...
 
void SetTarget (FloatType InTarget)
 Sets the target position for the spring 更多...
 
void Tick (float InQuantum)
 Updates the simulation. 更多...
 
 TSpring1D ()
 Constructor
 
 TSpring1D (FloatType InPosition)
 Construct at specified position
 

详细描述

template<typename FloatType>
class TSpring1D< FloatType >

One-dimensional spring simulation

成员函数说明

◆ GetPosition()

template<typename FloatType >
FloatType TSpring1D< FloatType >::GetPosition ( ) const
inline

Gets the current position of the spring

返回
Current position for this spring

◆ GetTarget()

template<typename FloatType >
FloatType TSpring1D< FloatType >::GetTarget ( ) const
inline

Gets the target position

返回
Target position for this spring

◆ IsAtRest()

template<typename FloatType >
bool TSpring1D< FloatType >::IsAtRest ( )
inline
返回
True if the spring is at rest (i.e. at its target position)

◆ SetConfig()

template<typename FloatType >
void TSpring1D< FloatType >::SetConfig ( const FSpringConfig &  InConfig)
inline

Sets the config for this spring

参数
InConfigNew configuration

◆ SetPosition()

template<typename FloatType >
void TSpring1D< FloatType >::SetPosition ( FloatType  InPosition)
inline

Sets the current position (and target position) for the spring

参数
InTargetNew position

◆ SetTarget()

template<typename FloatType >
void TSpring1D< FloatType >::SetTarget ( FloatType  InTarget)
inline

Sets the target position for the spring

参数
InTargetNew target position

◆ Tick()

template<typename FloatType >
void TSpring1D< FloatType >::Tick ( float  InQuantum)
inline

Updates the simulation.

Should be called every tick!

参数
InQuantumTime passed since last update

该类的文档由以下文件生成: