Go to the source code of this file.
◆ APPLY_FORCE
#define APPLY_FORCE |
( |
|
F1, |
|
|
|
F2, |
|
|
|
energyLabel |
|
) |
| |
Value: de1.force() += F1; \
de2.force() += F2; \
if (Physic::EnergyBalance::get().is_enable()) \
{ \
Physic::EnergyBalance& energy = Physic::EnergyBalance::get(); \
energy.add_force_on(de1, energyLabel, F1); \
energy.add_force_on(de2, energyLabel, F2); \
}
◆ APPLY_TORQUE
#define APPLY_TORQUE |
( |
|
T1, |
|
|
|
T2, |
|
|
|
energyLabel |
|
) |
| |
Value:
if (Physic::EnergyBalance::get().is_enable()) \
{ \
Physic::EnergyBalance& energy = Physic::EnergyBalance::get(); \
energy.add_torque_on(de1, energyLabel,
T1); \
energy.add_torque_on(de2, energyLabel,
T2); \
}
const T1
Definition: Exprtk.hpp:16489
const T1 const T2
Definition: Exprtk.hpp:16511