Titan
v1.0
A high-performance CUDA-based physics simulation sandbox for robotics, physics, and reinforcement learning.
|
double _rest
Definition: spring.h:51
double _rest
Definition: spring.h:78
void changeType(SpringType type, double omega)
Definition: spring.h:39
@ ACTIVE_EXPAND_THEN_CONTRACT
Definition: spring.h:17
SpringType _type
Definition: spring.h:53
SpringType _type
Definition: spring.h:81
Spring(Mass *left, Mass *right, double k, double rest_length, SpringType type, double omega)
Definition: spring.h:33
void setMasses(Mass *left, Mass *right)
Definition: spring.h:45
Spring()
Definition: spring.h:21
void addDamping(double constant)
Definition: spring.h:40
SpringType
Definition: spring.h:17
@ ACTIVE_CONTRACT_THEN_EXPAND
Definition: spring.h:17
void setRestLength(double rest_length)
Definition: spring.h:37
double _k
Definition: spring.h:50
CUDA_SPRING(const Spring &s)
Spring(Mass *left, Mass *right, double k, double rest_length)
Definition: spring.h:30
@ PASSIVE_STIFF
Definition: spring.h:17
Mass * _right
Definition: spring.h:48
double _damping
Definition: spring.h:83
double _k
Definition: spring.h:77
Spring(Mass *left, Mass *right)
Definition: spring.h:24
double _omega
Definition: spring.h:82
CUDA_SPRING(const Spring &s, CUDA_MASS *left, CUDA_MASS *right)
double _damping
Definition: spring.h:55
@ PASSIVE_SOFT
Definition: spring.h:17
CUDA_MASS * _right
Definition: spring.h:75
Mass * _left
Definition: spring.h:47
CUDA_SPRING()
Definition: spring.h:69
void update(const CUDA_SPRING &spr)
CUDA_MASS * _left
Definition: spring.h:74
double _omega
Definition: spring.h:54
void setRight(Mass *right)