JSim 2026.06.01-p(1)
Loading...
Searching...
No Matches
body_flags.hpp
Go to the documentation of this file.
1// Copyright (c) JSim contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the LGPLv3 license file in the root directory of this project.
4
5#pragma once
6
7namespace frcsim {
8
9struct BodyFlags {
10 // Apply gravity to this body
11 bool enable_gravity{true};
12
13 // Apply friction and contact forces
14 bool enable_friction{true};
15
16 // Enable collision detection and response for this body
18
19 // Enable kinematic constraints (joints, etc.) affecting this body
21
22 // For deformable bodies: enable deformation/warping/bending
23 bool enable_deformation{false};
24
25 // Body is kinematic (controlled by external code, not physics)
26 bool is_kinematic{false};
27};
28
29} // namespace frcsim
Definition vector.hpp:13
Definition body_flags.hpp:9
bool enable_friction
Definition body_flags.hpp:14
bool enable_kinematic_constraints
Definition body_flags.hpp:20
bool is_kinematic
Definition body_flags.hpp:26
bool enable_gravity
Definition body_flags.hpp:11
bool enable_deformation
Definition body_flags.hpp:23
bool enable_collisions
Definition body_flags.hpp:17