pub struct TaskContext {Show 20 fields
pub sensor_hits: Vec<SensorHit>,
pub contact_state_bit_set: BitSet,
pub joint_state_bit_set: BitSet,
pub hit_event_bit_set: BitSet,
pub has_hit_events: bool,
pub enlarged_sim_bit_set: BitSet,
pub awake_island_bit_set: BitSet,
pub split_sleep_time: f32,
pub split_island_id: i32,
pub sat_call_count: i32,
pub sat_cache_hit_count: i32,
pub distance_iterations: i32,
pub push_back_iterations: i32,
pub root_iterations: i32,
pub recycled_contact_count: i32,
pub manifold_counts: [i32; 8],
pub points: [DebugPoint; 64],
pub point_count: usize,
pub lines: [DebugLine; 64],
pub line_count: usize,
}Expand description
Per thread task storage. (b3TaskContext)
Arena, debug draw buffers, and false-sharing padding from C are omitted; the serial port owns step scratch locally.
Fields§
§sensor_hits: Vec<SensorHit>Collect per thread sensor continuous hit events.
contact_state_bit_set: BitSetAlign with contact id capacity; signal a change in contact status.
joint_state_bit_set: BitSetAlign with joint id capacity; signal a change in joint status.
hit_event_bit_set: BitSetAlign with contact id capacity; signal a hit event.
has_hit_events: boolFast-path flag: true when this worker set at least one bit in hit_event_bit_set this step.
enlarged_sim_bit_set: BitSetTrack bodies with shapes that have enlarged AABBs.
awake_island_bit_set: BitSetUsed to put islands to sleep.
split_sleep_time: f32Per worker split island candidate.
split_island_id: i32§sat_call_count: i32Profiling
sat_cache_hit_count: i32§distance_iterations: i32§push_back_iterations: i32§root_iterations: i32§recycled_contact_count: i32Number of contacts recycled this step (collide pass).
manifold_counts: [i32; 8]§points: [DebugPoint; 64]Solver debug points drawn by world_draw. (b3TaskContext::points)
point_count: usize§lines: [DebugLine; 64]Solver debug lines drawn by world_draw. (b3TaskContext::lines)
line_count: usizeTrait Implementations§
Source§impl Clone for TaskContext
impl Clone for TaskContext
Source§fn clone(&self) -> TaskContext
fn clone(&self) -> TaskContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more