PeriDyno 1.0.0
Loading...
Searching...
No Matches
Steer.h
Go to the documentation of this file.
1
16#pragma once
18
19namespace dyno
20{
21 template<typename TDataType>
23 {
24 DECLARE_TCLASS(Steer, TDataType);
25 public:
26 typedef typename TDataType::Real Real;
27 typedef typename TDataType::Coord Coord;
28 typedef typename TDataType::Matrix Matrix;
29
30 Steer();
31 ~Steer() override {};
32
33 DEF_VAR_IN(Coord, Velocity, "Velocity");
34
35 DEF_VAR_IN(Coord, AngularVelocity, "Angular velocity");
36
37 DEF_VAR_IN(Quat<Real>, Quaternion, "Rotation");
38
39 protected:
40 void onEvent(PKeyboardEvent event) override;
41 };
42}
DEF_VAR_IN(Coord, Velocity, "Velocity")
TDataType::Coord Coord
Definition Steer.h:27
~Steer() override
Definition Steer.h:31
DEF_VAR_IN(Quat< Real >, Quaternion, "Rotation")
DEF_VAR_IN(Coord, AngularVelocity, "Angular velocity")
TDataType::Real Real
Definition Steer.h:26
DECLARE_TCLASS(Steer, TDataType)
void onEvent(PKeyboardEvent event) override
Definition Steer.cpp:15
TDataType::Matrix Matrix
Definition Steer.h:28
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25