pub struct Recording {
pub buffer: RecBuffer,
pub record_start: i32,
pub registry: GeometryRegistry,
pub tags: Vec<RecTag>,
pub accumulated_bounds: Aabb,
pub have_bounds: bool,
/* private fields */
}Expand description
User-owned recording buffer. (b3Recording)
Fields§
§buffer: RecBuffer§record_start: i32Offset of the 3-byte size field for u24 backpatch.
registry: GeometryRegistry§accumulated_bounds: Aabb§have_bounds: boolImplementations§
Source§impl Recording
impl Recording
pub fn data(&self) -> &[u8] ⓘ
pub fn size(&self) -> i32
Sourcepub fn begin_record(&mut self, opcode: u8)
pub fn begin_record(&mut self, opcode: u8)
(b3RecBeginRecord)
Sourcepub fn end_record(&mut self)
pub fn end_record(&mut self)
(b3RecEndRecord)
Sourcepub fn commit_record(&mut self, opcode: u8, payload: &[u8])
pub fn commit_record(&mut self, opcode: u8, payload: &[u8])
(b3RecCommitRecord)
Sourcepub fn accumulate_bounds(&mut self, bounds: Aabb)
pub fn accumulate_bounds(&mut self, bounds: Aabb)
(b3RecAccumulateBounds)
Sourcepub fn hash_query_tag(id: u64, name: &str) -> u64
pub fn hash_query_tag(id: u64, name: &str) -> u64
(b3HashQueryTag)
Sourcepub fn intern_tag(&mut self, key: u64, id: u64, name: &str)
pub fn intern_tag(&mut self, key: u64, id: u64, name: &str)
(b3RecInternTag)
Sourcepub fn write_registry(&mut self)
pub fn write_registry(&mut self)
(b3RecWriteRegistry)
Source§impl Recording
impl Recording
Sourcepub fn write_create_body(
&mut self,
world: WorldId,
def: &BodyDef,
ret_id: BodyId,
)
pub fn write_create_body( &mut self, world: WorldId, def: &BodyDef, ret_id: BodyId, )
Write framed CreateBody op.
Sourcepub fn write_destroy_body(&mut self, body: BodyId)
pub fn write_destroy_body(&mut self, body: BodyId)
Write framed DestroyBody op.
Sourcepub fn write_body_set_transform(
&mut self,
body: BodyId,
position: Pos,
rotation: Quat,
)
pub fn write_body_set_transform( &mut self, body: BodyId, position: Pos, rotation: Quat, )
Write framed BodySetTransform op.
Sourcepub fn write_body_set_linear_velocity(&mut self, body: BodyId, v: Vec3)
pub fn write_body_set_linear_velocity(&mut self, body: BodyId, v: Vec3)
Write framed BodySetLinearVelocity op.
Sourcepub fn write_body_set_type(&mut self, body: BodyId, type_: i32)
pub fn write_body_set_type(&mut self, body: BodyId, type_: i32)
Write framed BodySetType op.
Sourcepub fn write_body_set_name(&mut self, body: BodyId, name: &str)
pub fn write_body_set_name(&mut self, body: BodyId, name: &str)
Write framed BodySetName op.
Sourcepub fn write_body_set_angular_velocity(&mut self, body: BodyId, w: Vec3)
pub fn write_body_set_angular_velocity(&mut self, body: BodyId, w: Vec3)
Write framed BodySetAngularVelocity op.
Sourcepub fn write_body_set_target_transform(
&mut self,
body: BodyId,
target: WorldTransform,
time_step: f32,
wake: bool,
)
pub fn write_body_set_target_transform( &mut self, body: BodyId, target: WorldTransform, time_step: f32, wake: bool, )
Write framed BodySetTargetTransform op.
Sourcepub fn write_body_apply_force(
&mut self,
body: BodyId,
force: Vec3,
point: Pos,
wake: bool,
)
pub fn write_body_apply_force( &mut self, body: BodyId, force: Vec3, point: Pos, wake: bool, )
Write framed BodyApplyForce op.
Sourcepub fn write_body_apply_force_to_center(
&mut self,
body: BodyId,
force: Vec3,
wake: bool,
)
pub fn write_body_apply_force_to_center( &mut self, body: BodyId, force: Vec3, wake: bool, )
Write framed BodyApplyForceToCenter op.
Sourcepub fn write_body_apply_torque(
&mut self,
body: BodyId,
torque: Vec3,
wake: bool,
)
pub fn write_body_apply_torque( &mut self, body: BodyId, torque: Vec3, wake: bool, )
Write framed BodyApplyTorque op.
Sourcepub fn write_body_apply_linear_impulse(
&mut self,
body: BodyId,
impulse: Vec3,
point: Pos,
wake: bool,
)
pub fn write_body_apply_linear_impulse( &mut self, body: BodyId, impulse: Vec3, point: Pos, wake: bool, )
Write framed BodyApplyLinearImpulse op.
Sourcepub fn write_body_apply_linear_impulse_to_center(
&mut self,
body: BodyId,
impulse: Vec3,
wake: bool,
)
pub fn write_body_apply_linear_impulse_to_center( &mut self, body: BodyId, impulse: Vec3, wake: bool, )
Write framed BodyApplyLinearImpulseToCenter op.
Sourcepub fn write_body_apply_angular_impulse(
&mut self,
body: BodyId,
impulse: Vec3,
wake: bool,
)
pub fn write_body_apply_angular_impulse( &mut self, body: BodyId, impulse: Vec3, wake: bool, )
Write framed BodyApplyAngularImpulse op.
Sourcepub fn write_body_set_mass_data(&mut self, body: BodyId, mass_data: MassData)
pub fn write_body_set_mass_data(&mut self, body: BodyId, mass_data: MassData)
Write framed BodySetMassData op.
Sourcepub fn write_body_apply_mass_from_shapes(&mut self, body: BodyId)
pub fn write_body_apply_mass_from_shapes(&mut self, body: BodyId)
Write framed BodyApplyMassFromShapes op.
Sourcepub fn write_body_set_linear_damping(&mut self, body: BodyId, damping: f32)
pub fn write_body_set_linear_damping(&mut self, body: BodyId, damping: f32)
Write framed BodySetLinearDamping op.
Sourcepub fn write_body_set_angular_damping(&mut self, body: BodyId, damping: f32)
pub fn write_body_set_angular_damping(&mut self, body: BodyId, damping: f32)
Write framed BodySetAngularDamping op.
Sourcepub fn write_body_set_gravity_scale(&mut self, body: BodyId, scale: f32)
pub fn write_body_set_gravity_scale(&mut self, body: BodyId, scale: f32)
Write framed BodySetGravityScale op.
Sourcepub fn write_body_set_awake(&mut self, body: BodyId, awake: bool)
pub fn write_body_set_awake(&mut self, body: BodyId, awake: bool)
Write framed BodySetAwake op.
Sourcepub fn write_body_enable_sleep(&mut self, body: BodyId, flag: bool)
pub fn write_body_enable_sleep(&mut self, body: BodyId, flag: bool)
Write framed BodyEnableSleep op.
Sourcepub fn write_body_set_sleep_threshold(&mut self, body: BodyId, threshold: f32)
pub fn write_body_set_sleep_threshold(&mut self, body: BodyId, threshold: f32)
Write framed BodySetSleepThreshold op.
Sourcepub fn write_body_disable(&mut self, body: BodyId)
pub fn write_body_disable(&mut self, body: BodyId)
Write framed BodyDisable op.
Sourcepub fn write_body_enable(&mut self, body: BodyId)
pub fn write_body_enable(&mut self, body: BodyId)
Write framed BodyEnable op.
Sourcepub fn write_body_set_motion_locks(&mut self, body: BodyId, locks: MotionLocks)
pub fn write_body_set_motion_locks(&mut self, body: BodyId, locks: MotionLocks)
Write framed BodySetMotionLocks op.
Sourcepub fn write_body_set_bullet(&mut self, body: BodyId, flag: bool)
pub fn write_body_set_bullet(&mut self, body: BodyId, flag: bool)
Write framed BodySetBullet op.
Sourcepub fn write_body_enable_contact_recycling(&mut self, body: BodyId, flag: bool)
pub fn write_body_enable_contact_recycling(&mut self, body: BodyId, flag: bool)
Write framed BodyEnableContactRecycling op.
Sourcepub fn write_body_enable_hit_events(&mut self, body: BodyId, flag: bool)
pub fn write_body_enable_hit_events(&mut self, body: BodyId, flag: bool)
Write framed BodyEnableHitEvents op.
Source§impl Recording
impl Recording
Sourcepub fn write_create_parallel_joint(
&mut self,
world: WorldId,
def: &ParallelJointDef,
ret_id: JointId,
)
pub fn write_create_parallel_joint( &mut self, world: WorldId, def: &ParallelJointDef, ret_id: JointId, )
Write framed CreateParallelJoint op.
Sourcepub fn write_create_distance_joint(
&mut self,
world: WorldId,
def: &DistanceJointDef,
ret_id: JointId,
)
pub fn write_create_distance_joint( &mut self, world: WorldId, def: &DistanceJointDef, ret_id: JointId, )
Write framed CreateDistanceJoint op.
Sourcepub fn write_create_filter_joint(
&mut self,
world: WorldId,
def: &FilterJointDef,
ret_id: JointId,
)
pub fn write_create_filter_joint( &mut self, world: WorldId, def: &FilterJointDef, ret_id: JointId, )
Write framed CreateFilterJoint op.
Sourcepub fn write_create_motor_joint(
&mut self,
world: WorldId,
def: &MotorJointDef,
ret_id: JointId,
)
pub fn write_create_motor_joint( &mut self, world: WorldId, def: &MotorJointDef, ret_id: JointId, )
Write framed CreateMotorJoint op.
Sourcepub fn write_create_prismatic_joint(
&mut self,
world: WorldId,
def: &PrismaticJointDef,
ret_id: JointId,
)
pub fn write_create_prismatic_joint( &mut self, world: WorldId, def: &PrismaticJointDef, ret_id: JointId, )
Write framed CreatePrismaticJoint op.
Sourcepub fn write_create_revolute_joint(
&mut self,
world: WorldId,
def: &RevoluteJointDef,
ret_id: JointId,
)
pub fn write_create_revolute_joint( &mut self, world: WorldId, def: &RevoluteJointDef, ret_id: JointId, )
Write framed CreateRevoluteJoint op.
Sourcepub fn write_create_spherical_joint(
&mut self,
world: WorldId,
def: &SphericalJointDef,
ret_id: JointId,
)
pub fn write_create_spherical_joint( &mut self, world: WorldId, def: &SphericalJointDef, ret_id: JointId, )
Write framed CreateSphericalJoint op.
Sourcepub fn write_create_weld_joint(
&mut self,
world: WorldId,
def: &WeldJointDef,
ret_id: JointId,
)
pub fn write_create_weld_joint( &mut self, world: WorldId, def: &WeldJointDef, ret_id: JointId, )
Write framed CreateWeldJoint op.
Sourcepub fn write_create_wheel_joint(
&mut self,
world: WorldId,
def: &WheelJointDef,
ret_id: JointId,
)
pub fn write_create_wheel_joint( &mut self, world: WorldId, def: &WheelJointDef, ret_id: JointId, )
Write framed CreateWheelJoint op.
Sourcepub fn write_destroy_joint(&mut self, joint: JointId, wake_attached: bool)
pub fn write_destroy_joint(&mut self, joint: JointId, wake_attached: bool)
Write framed DestroyJoint op.
Sourcepub fn write_joint_set_local_frame_a(
&mut self,
joint: JointId,
local_frame: Transform,
)
pub fn write_joint_set_local_frame_a( &mut self, joint: JointId, local_frame: Transform, )
Write framed JointSetLocalFrameA op.
Sourcepub fn write_joint_set_local_frame_b(
&mut self,
joint: JointId,
local_frame: Transform,
)
pub fn write_joint_set_local_frame_b( &mut self, joint: JointId, local_frame: Transform, )
Write framed JointSetLocalFrameB op.
Sourcepub fn write_joint_set_collide_connected(
&mut self,
joint: JointId,
should_collide: bool,
)
pub fn write_joint_set_collide_connected( &mut self, joint: JointId, should_collide: bool, )
Write framed JointSetCollideConnected op.
Sourcepub fn write_joint_wake_bodies(&mut self, joint: JointId)
pub fn write_joint_wake_bodies(&mut self, joint: JointId)
Write framed JointWakeBodies op.
Sourcepub fn write_joint_set_constraint_tuning(
&mut self,
joint: JointId,
hertz: f32,
damping_ratio: f32,
)
pub fn write_joint_set_constraint_tuning( &mut self, joint: JointId, hertz: f32, damping_ratio: f32, )
Write framed JointSetConstraintTuning op.
Sourcepub fn write_joint_set_force_threshold(
&mut self,
joint: JointId,
threshold: f32,
)
pub fn write_joint_set_force_threshold( &mut self, joint: JointId, threshold: f32, )
Write framed JointSetForceThreshold op.
Sourcepub fn write_joint_set_torque_threshold(
&mut self,
joint: JointId,
threshold: f32,
)
pub fn write_joint_set_torque_threshold( &mut self, joint: JointId, threshold: f32, )
Write framed JointSetTorqueThreshold op.
Source§impl Recording
impl Recording
Sourcepub fn write_parallel_joint_set_spring_hertz(
&mut self,
joint: JointId,
hertz: f32,
)
pub fn write_parallel_joint_set_spring_hertz( &mut self, joint: JointId, hertz: f32, )
Write framed ParallelJointSetSpringHertz op.
Sourcepub fn write_parallel_joint_set_spring_damping_ratio(
&mut self,
joint: JointId,
damping_ratio: f32,
)
pub fn write_parallel_joint_set_spring_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )
Write framed ParallelJointSetSpringDampingRatio op.
Sourcepub fn write_parallel_joint_set_max_torque(
&mut self,
joint: JointId,
max_torque: f32,
)
pub fn write_parallel_joint_set_max_torque( &mut self, joint: JointId, max_torque: f32, )
Write framed ParallelJointSetMaxTorque op.
Sourcepub fn write_distance_joint_set_length(&mut self, joint: JointId, length: f32)
pub fn write_distance_joint_set_length(&mut self, joint: JointId, length: f32)
Write framed DistanceJointSetLength op.
Sourcepub fn write_distance_joint_enable_spring(
&mut self,
joint: JointId,
enable_spring: bool,
)
pub fn write_distance_joint_enable_spring( &mut self, joint: JointId, enable_spring: bool, )
Write framed DistanceJointEnableSpring op.
Sourcepub fn write_distance_joint_set_spring_force_range(
&mut self,
joint: JointId,
lower_force: f32,
upper_force: f32,
)
pub fn write_distance_joint_set_spring_force_range( &mut self, joint: JointId, lower_force: f32, upper_force: f32, )
Write framed DistanceJointSetSpringForceRange op.
Sourcepub fn write_distance_joint_set_spring_hertz(
&mut self,
joint: JointId,
hertz: f32,
)
pub fn write_distance_joint_set_spring_hertz( &mut self, joint: JointId, hertz: f32, )
Write framed DistanceJointSetSpringHertz op.
Sourcepub fn write_distance_joint_set_spring_damping_ratio(
&mut self,
joint: JointId,
damping_ratio: f32,
)
pub fn write_distance_joint_set_spring_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )
Write framed DistanceJointSetSpringDampingRatio op.
Sourcepub fn write_distance_joint_enable_limit(
&mut self,
joint: JointId,
enable_limit: bool,
)
pub fn write_distance_joint_enable_limit( &mut self, joint: JointId, enable_limit: bool, )
Write framed DistanceJointEnableLimit op.
Sourcepub fn write_distance_joint_set_length_range(
&mut self,
joint: JointId,
min_length: f32,
max_length: f32,
)
pub fn write_distance_joint_set_length_range( &mut self, joint: JointId, min_length: f32, max_length: f32, )
Write framed DistanceJointSetLengthRange op.
Sourcepub fn write_distance_joint_enable_motor(
&mut self,
joint: JointId,
enable_motor: bool,
)
pub fn write_distance_joint_enable_motor( &mut self, joint: JointId, enable_motor: bool, )
Write framed DistanceJointEnableMotor op.
Sourcepub fn write_distance_joint_set_motor_speed(
&mut self,
joint: JointId,
motor_speed: f32,
)
pub fn write_distance_joint_set_motor_speed( &mut self, joint: JointId, motor_speed: f32, )
Write framed DistanceJointSetMotorSpeed op.
Sourcepub fn write_distance_joint_set_max_motor_force(
&mut self,
joint: JointId,
force: f32,
)
pub fn write_distance_joint_set_max_motor_force( &mut self, joint: JointId, force: f32, )
Write framed DistanceJointSetMaxMotorForce op.
Sourcepub fn write_motor_joint_set_linear_velocity(
&mut self,
joint: JointId,
velocity: Vec3,
)
pub fn write_motor_joint_set_linear_velocity( &mut self, joint: JointId, velocity: Vec3, )
Write framed MotorJointSetLinearVelocity op.
Sourcepub fn write_motor_joint_set_angular_velocity(
&mut self,
joint: JointId,
velocity: Vec3,
)
pub fn write_motor_joint_set_angular_velocity( &mut self, joint: JointId, velocity: Vec3, )
Write framed MotorJointSetAngularVelocity op.
Sourcepub fn write_motor_joint_set_max_velocity_force(
&mut self,
joint: JointId,
max_force: f32,
)
pub fn write_motor_joint_set_max_velocity_force( &mut self, joint: JointId, max_force: f32, )
Write framed MotorJointSetMaxVelocityForce op.
Sourcepub fn write_motor_joint_set_max_velocity_torque(
&mut self,
joint: JointId,
max_torque: f32,
)
pub fn write_motor_joint_set_max_velocity_torque( &mut self, joint: JointId, max_torque: f32, )
Write framed MotorJointSetMaxVelocityTorque op.
Sourcepub fn write_motor_joint_set_linear_hertz(&mut self, joint: JointId, hertz: f32)
pub fn write_motor_joint_set_linear_hertz(&mut self, joint: JointId, hertz: f32)
Write framed MotorJointSetLinearHertz op.
Sourcepub fn write_motor_joint_set_linear_damping_ratio(
&mut self,
joint: JointId,
damping: f32,
)
pub fn write_motor_joint_set_linear_damping_ratio( &mut self, joint: JointId, damping: f32, )
Write framed MotorJointSetLinearDampingRatio op.
Sourcepub fn write_motor_joint_set_angular_hertz(
&mut self,
joint: JointId,
hertz: f32,
)
pub fn write_motor_joint_set_angular_hertz( &mut self, joint: JointId, hertz: f32, )
Write framed MotorJointSetAngularHertz op.
Sourcepub fn write_motor_joint_set_angular_damping_ratio(
&mut self,
joint: JointId,
damping: f32,
)
pub fn write_motor_joint_set_angular_damping_ratio( &mut self, joint: JointId, damping: f32, )
Write framed MotorJointSetAngularDampingRatio op.
Sourcepub fn write_motor_joint_set_max_spring_force(
&mut self,
joint: JointId,
max_force: f32,
)
pub fn write_motor_joint_set_max_spring_force( &mut self, joint: JointId, max_force: f32, )
Write framed MotorJointSetMaxSpringForce op.
Sourcepub fn write_motor_joint_set_max_spring_torque(
&mut self,
joint: JointId,
max_torque: f32,
)
pub fn write_motor_joint_set_max_spring_torque( &mut self, joint: JointId, max_torque: f32, )
Write framed MotorJointSetMaxSpringTorque op.
Sourcepub fn write_prismatic_joint_enable_spring(
&mut self,
joint: JointId,
enable_spring: bool,
)
pub fn write_prismatic_joint_enable_spring( &mut self, joint: JointId, enable_spring: bool, )
Write framed PrismaticJointEnableSpring op.
Sourcepub fn write_prismatic_joint_set_spring_hertz(
&mut self,
joint: JointId,
hertz: f32,
)
pub fn write_prismatic_joint_set_spring_hertz( &mut self, joint: JointId, hertz: f32, )
Write framed PrismaticJointSetSpringHertz op.
Sourcepub fn write_prismatic_joint_set_spring_damping_ratio(
&mut self,
joint: JointId,
damping_ratio: f32,
)
pub fn write_prismatic_joint_set_spring_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )
Write framed PrismaticJointSetSpringDampingRatio op.
Sourcepub fn write_prismatic_joint_set_target_translation(
&mut self,
joint: JointId,
translation: f32,
)
pub fn write_prismatic_joint_set_target_translation( &mut self, joint: JointId, translation: f32, )
Write framed PrismaticJointSetTargetTranslation op.
Sourcepub fn write_prismatic_joint_enable_limit(
&mut self,
joint: JointId,
enable_limit: bool,
)
pub fn write_prismatic_joint_enable_limit( &mut self, joint: JointId, enable_limit: bool, )
Write framed PrismaticJointEnableLimit op.
Sourcepub fn write_prismatic_joint_set_limits(
&mut self,
joint: JointId,
lower: f32,
upper: f32,
)
pub fn write_prismatic_joint_set_limits( &mut self, joint: JointId, lower: f32, upper: f32, )
Write framed PrismaticJointSetLimits op.
Sourcepub fn write_prismatic_joint_enable_motor(
&mut self,
joint: JointId,
enable_motor: bool,
)
pub fn write_prismatic_joint_enable_motor( &mut self, joint: JointId, enable_motor: bool, )
Write framed PrismaticJointEnableMotor op.
Sourcepub fn write_prismatic_joint_set_motor_speed(
&mut self,
joint: JointId,
motor_speed: f32,
)
pub fn write_prismatic_joint_set_motor_speed( &mut self, joint: JointId, motor_speed: f32, )
Write framed PrismaticJointSetMotorSpeed op.
Sourcepub fn write_prismatic_joint_set_max_motor_force(
&mut self,
joint: JointId,
force: f32,
)
pub fn write_prismatic_joint_set_max_motor_force( &mut self, joint: JointId, force: f32, )
Write framed PrismaticJointSetMaxMotorForce op.
Sourcepub fn write_revolute_joint_enable_spring(
&mut self,
joint: JointId,
enable_spring: bool,
)
pub fn write_revolute_joint_enable_spring( &mut self, joint: JointId, enable_spring: bool, )
Write framed RevoluteJointEnableSpring op.
Sourcepub fn write_revolute_joint_set_spring_hertz(
&mut self,
joint: JointId,
hertz: f32,
)
pub fn write_revolute_joint_set_spring_hertz( &mut self, joint: JointId, hertz: f32, )
Write framed RevoluteJointSetSpringHertz op.
Sourcepub fn write_revolute_joint_set_spring_damping_ratio(
&mut self,
joint: JointId,
damping_ratio: f32,
)
pub fn write_revolute_joint_set_spring_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )
Write framed RevoluteJointSetSpringDampingRatio op.
Sourcepub fn write_revolute_joint_set_target_angle(
&mut self,
joint: JointId,
angle: f32,
)
pub fn write_revolute_joint_set_target_angle( &mut self, joint: JointId, angle: f32, )
Write framed RevoluteJointSetTargetAngle op.
Sourcepub fn write_revolute_joint_enable_limit(
&mut self,
joint: JointId,
enable_limit: bool,
)
pub fn write_revolute_joint_enable_limit( &mut self, joint: JointId, enable_limit: bool, )
Write framed RevoluteJointEnableLimit op.
Sourcepub fn write_revolute_joint_set_limits(
&mut self,
joint: JointId,
lower: f32,
upper: f32,
)
pub fn write_revolute_joint_set_limits( &mut self, joint: JointId, lower: f32, upper: f32, )
Write framed RevoluteJointSetLimits op.
Sourcepub fn write_revolute_joint_enable_motor(
&mut self,
joint: JointId,
enable_motor: bool,
)
pub fn write_revolute_joint_enable_motor( &mut self, joint: JointId, enable_motor: bool, )
Write framed RevoluteJointEnableMotor op.
Sourcepub fn write_revolute_joint_set_motor_speed(
&mut self,
joint: JointId,
motor_speed: f32,
)
pub fn write_revolute_joint_set_motor_speed( &mut self, joint: JointId, motor_speed: f32, )
Write framed RevoluteJointSetMotorSpeed op.
Sourcepub fn write_revolute_joint_set_max_motor_torque(
&mut self,
joint: JointId,
torque: f32,
)
pub fn write_revolute_joint_set_max_motor_torque( &mut self, joint: JointId, torque: f32, )
Write framed RevoluteJointSetMaxMotorTorque op.
Sourcepub fn write_spherical_joint_enable_cone_limit(
&mut self,
joint: JointId,
enable_limit: bool,
)
pub fn write_spherical_joint_enable_cone_limit( &mut self, joint: JointId, enable_limit: bool, )
Write framed SphericalJointEnableConeLimit op.
Sourcepub fn write_spherical_joint_set_cone_limit(
&mut self,
joint: JointId,
angle_radians: f32,
)
pub fn write_spherical_joint_set_cone_limit( &mut self, joint: JointId, angle_radians: f32, )
Write framed SphericalJointSetConeLimit op.
Sourcepub fn write_spherical_joint_enable_twist_limit(
&mut self,
joint: JointId,
enable_limit: bool,
)
pub fn write_spherical_joint_enable_twist_limit( &mut self, joint: JointId, enable_limit: bool, )
Write framed SphericalJointEnableTwistLimit op.
Sourcepub fn write_spherical_joint_set_twist_limits(
&mut self,
joint: JointId,
lower: f32,
upper: f32,
)
pub fn write_spherical_joint_set_twist_limits( &mut self, joint: JointId, lower: f32, upper: f32, )
Write framed SphericalJointSetTwistLimits op.
Sourcepub fn write_spherical_joint_enable_spring(
&mut self,
joint: JointId,
enable_spring: bool,
)
pub fn write_spherical_joint_enable_spring( &mut self, joint: JointId, enable_spring: bool, )
Write framed SphericalJointEnableSpring op.
Sourcepub fn write_spherical_joint_set_spring_hertz(
&mut self,
joint: JointId,
hertz: f32,
)
pub fn write_spherical_joint_set_spring_hertz( &mut self, joint: JointId, hertz: f32, )
Write framed SphericalJointSetSpringHertz op.
Sourcepub fn write_spherical_joint_set_spring_damping_ratio(
&mut self,
joint: JointId,
damping_ratio: f32,
)
pub fn write_spherical_joint_set_spring_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )
Write framed SphericalJointSetSpringDampingRatio op.
Sourcepub fn write_spherical_joint_set_target_rotation(
&mut self,
joint: JointId,
target_rotation: Quat,
)
pub fn write_spherical_joint_set_target_rotation( &mut self, joint: JointId, target_rotation: Quat, )
Write framed SphericalJointSetTargetRotation op.
Sourcepub fn write_spherical_joint_enable_motor(
&mut self,
joint: JointId,
enable_motor: bool,
)
pub fn write_spherical_joint_enable_motor( &mut self, joint: JointId, enable_motor: bool, )
Write framed SphericalJointEnableMotor op.
Sourcepub fn write_spherical_joint_set_motor_velocity(
&mut self,
joint: JointId,
motor_velocity: Vec3,
)
pub fn write_spherical_joint_set_motor_velocity( &mut self, joint: JointId, motor_velocity: Vec3, )
Write framed SphericalJointSetMotorVelocity op.
Sourcepub fn write_spherical_joint_set_max_motor_torque(
&mut self,
joint: JointId,
torque: f32,
)
pub fn write_spherical_joint_set_max_motor_torque( &mut self, joint: JointId, torque: f32, )
Write framed SphericalJointSetMaxMotorTorque op.
Sourcepub fn write_weld_joint_set_linear_hertz(&mut self, joint: JointId, hertz: f32)
pub fn write_weld_joint_set_linear_hertz(&mut self, joint: JointId, hertz: f32)
Write framed WeldJointSetLinearHertz op.
Sourcepub fn write_weld_joint_set_linear_damping_ratio(
&mut self,
joint: JointId,
damping_ratio: f32,
)
pub fn write_weld_joint_set_linear_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )
Write framed WeldJointSetLinearDampingRatio op.
Sourcepub fn write_weld_joint_set_angular_hertz(&mut self, joint: JointId, hertz: f32)
pub fn write_weld_joint_set_angular_hertz(&mut self, joint: JointId, hertz: f32)
Write framed WeldJointSetAngularHertz op.
Sourcepub fn write_weld_joint_set_angular_damping_ratio(
&mut self,
joint: JointId,
damping_ratio: f32,
)
pub fn write_weld_joint_set_angular_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )
Write framed WeldJointSetAngularDampingRatio op.
Sourcepub fn write_wheel_joint_enable_suspension(
&mut self,
joint: JointId,
flag: bool,
)
pub fn write_wheel_joint_enable_suspension( &mut self, joint: JointId, flag: bool, )
Write framed WheelJointEnableSuspension op.
Sourcepub fn write_wheel_joint_set_suspension_hertz(
&mut self,
joint: JointId,
hertz: f32,
)
pub fn write_wheel_joint_set_suspension_hertz( &mut self, joint: JointId, hertz: f32, )
Write framed WheelJointSetSuspensionHertz op.
Sourcepub fn write_wheel_joint_set_suspension_damping_ratio(
&mut self,
joint: JointId,
damping_ratio: f32,
)
pub fn write_wheel_joint_set_suspension_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )
Write framed WheelJointSetSuspensionDampingRatio op.
Sourcepub fn write_wheel_joint_enable_suspension_limit(
&mut self,
joint: JointId,
flag: bool,
)
pub fn write_wheel_joint_enable_suspension_limit( &mut self, joint: JointId, flag: bool, )
Write framed WheelJointEnableSuspensionLimit op.
Sourcepub fn write_wheel_joint_set_suspension_limits(
&mut self,
joint: JointId,
lower: f32,
upper: f32,
)
pub fn write_wheel_joint_set_suspension_limits( &mut self, joint: JointId, lower: f32, upper: f32, )
Write framed WheelJointSetSuspensionLimits op.
Sourcepub fn write_wheel_joint_enable_spin_motor(
&mut self,
joint: JointId,
flag: bool,
)
pub fn write_wheel_joint_enable_spin_motor( &mut self, joint: JointId, flag: bool, )
Write framed WheelJointEnableSpinMotor op.
Sourcepub fn write_wheel_joint_set_spin_motor_speed(
&mut self,
joint: JointId,
speed: f32,
)
pub fn write_wheel_joint_set_spin_motor_speed( &mut self, joint: JointId, speed: f32, )
Write framed WheelJointSetSpinMotorSpeed op.
Sourcepub fn write_wheel_joint_set_max_spin_torque(
&mut self,
joint: JointId,
torque: f32,
)
pub fn write_wheel_joint_set_max_spin_torque( &mut self, joint: JointId, torque: f32, )
Write framed WheelJointSetMaxSpinTorque op.
Sourcepub fn write_wheel_joint_enable_steering(&mut self, joint: JointId, flag: bool)
pub fn write_wheel_joint_enable_steering(&mut self, joint: JointId, flag: bool)
Write framed WheelJointEnableSteering op.
Sourcepub fn write_wheel_joint_set_steering_hertz(
&mut self,
joint: JointId,
hertz: f32,
)
pub fn write_wheel_joint_set_steering_hertz( &mut self, joint: JointId, hertz: f32, )
Write framed WheelJointSetSteeringHertz op.
Sourcepub fn write_wheel_joint_set_steering_damping_ratio(
&mut self,
joint: JointId,
damping_ratio: f32,
)
pub fn write_wheel_joint_set_steering_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )
Write framed WheelJointSetSteeringDampingRatio op.
Sourcepub fn write_wheel_joint_set_max_steering_torque(
&mut self,
joint: JointId,
torque: f32,
)
pub fn write_wheel_joint_set_max_steering_torque( &mut self, joint: JointId, torque: f32, )
Write framed WheelJointSetMaxSteeringTorque op.
Sourcepub fn write_wheel_joint_enable_steering_limit(
&mut self,
joint: JointId,
flag: bool,
)
pub fn write_wheel_joint_enable_steering_limit( &mut self, joint: JointId, flag: bool, )
Write framed WheelJointEnableSteeringLimit op.
Sourcepub fn write_wheel_joint_set_steering_limits(
&mut self,
joint: JointId,
lower: f32,
upper: f32,
)
pub fn write_wheel_joint_set_steering_limits( &mut self, joint: JointId, lower: f32, upper: f32, )
Write framed WheelJointSetSteeringLimits op.
Sourcepub fn write_wheel_joint_set_target_steering_angle(
&mut self,
joint: JointId,
radians: f32,
)
pub fn write_wheel_joint_set_target_steering_angle( &mut self, joint: JointId, radians: f32, )
Write framed WheelJointSetTargetSteeringAngle op.
Source§impl Recording
impl Recording
Sourcepub fn write_query_overlap_aabb(
&mut self,
world: WorldId,
aabb: Aabb,
filter: &QueryFilter,
)
pub fn write_query_overlap_aabb( &mut self, world: WorldId, aabb: Aabb, filter: &QueryFilter, )
Write framed QueryOverlapAABB op.
Sourcepub fn write_query_overlap_shape(
&mut self,
world: WorldId,
origin: Pos,
proxy: &ShapeProxy,
filter: &QueryFilter,
)
pub fn write_query_overlap_shape( &mut self, world: WorldId, origin: Pos, proxy: &ShapeProxy, filter: &QueryFilter, )
Write framed QueryOverlapShape op.
Sourcepub fn write_query_cast_ray(
&mut self,
world: WorldId,
origin: Pos,
translation: Vec3,
filter: &QueryFilter,
)
pub fn write_query_cast_ray( &mut self, world: WorldId, origin: Pos, translation: Vec3, filter: &QueryFilter, )
Write framed QueryCastRay op.
Sourcepub fn write_query_cast_shape(
&mut self,
world: WorldId,
origin: Pos,
proxy: &ShapeProxy,
translation: Vec3,
filter: &QueryFilter,
)
pub fn write_query_cast_shape( &mut self, world: WorldId, origin: Pos, proxy: &ShapeProxy, translation: Vec3, filter: &QueryFilter, )
Write framed QueryCastShape op.
Sourcepub fn write_query_cast_ray_closest(
&mut self,
world: WorldId,
origin: Pos,
translation: Vec3,
filter: &QueryFilter,
)
pub fn write_query_cast_ray_closest( &mut self, world: WorldId, origin: Pos, translation: Vec3, filter: &QueryFilter, )
Write framed QueryCastRayClosest op.
Sourcepub fn write_query_cast_mover(
&mut self,
world: WorldId,
origin: Pos,
mover: Capsule,
translation: Vec3,
filter: &QueryFilter,
)
pub fn write_query_cast_mover( &mut self, world: WorldId, origin: Pos, mover: Capsule, translation: Vec3, filter: &QueryFilter, )
Write framed QueryCastMover op.
Sourcepub fn write_query_collide_mover(
&mut self,
world: WorldId,
origin: Pos,
mover: Capsule,
filter: &QueryFilter,
)
pub fn write_query_collide_mover( &mut self, world: WorldId, origin: Pos, mover: Capsule, filter: &QueryFilter, )
Write framed QueryCollideMover op.
Sourcepub fn write_query_tag(&mut self, key: u64)
pub fn write_query_tag(&mut self, key: u64)
Write framed QueryTag op.
Sourcepub fn write_state_hash(&mut self, world: WorldId, hash: u64)
pub fn write_state_hash(&mut self, world: WorldId, hash: u64)
Write framed StateHash op.
Sourcepub fn write_recording_bounds(&mut self, bounds: Aabb)
pub fn write_recording_bounds(&mut self, bounds: Aabb)
Write framed RecordingBounds op.
Source§impl Recording
impl Recording
Sourcepub fn write_create_sphere_shape(
&mut self,
body: BodyId,
def: &ShapeDef,
sphere: Sphere,
ret_id: ShapeId,
)
pub fn write_create_sphere_shape( &mut self, body: BodyId, def: &ShapeDef, sphere: Sphere, ret_id: ShapeId, )
Write framed CreateSphereShape op.
Sourcepub fn write_create_capsule_shape(
&mut self,
body: BodyId,
def: &ShapeDef,
capsule: Capsule,
ret_id: ShapeId,
)
pub fn write_create_capsule_shape( &mut self, body: BodyId, def: &ShapeDef, capsule: Capsule, ret_id: ShapeId, )
Write framed CreateCapsuleShape op.
Sourcepub fn write_create_hull_shape(
&mut self,
body: BodyId,
def: &ShapeDef,
geometry_id: u32,
ret_id: ShapeId,
)
pub fn write_create_hull_shape( &mut self, body: BodyId, def: &ShapeDef, geometry_id: u32, ret_id: ShapeId, )
Write framed CreateHullShape op.
Sourcepub fn write_create_mesh_shape(
&mut self,
body: BodyId,
def: &ShapeDef,
geometry_id: u32,
scale: Vec3,
ret_id: ShapeId,
)
pub fn write_create_mesh_shape( &mut self, body: BodyId, def: &ShapeDef, geometry_id: u32, scale: Vec3, ret_id: ShapeId, )
Write framed CreateMeshShape op.
Sourcepub fn write_create_height_field_shape(
&mut self,
body: BodyId,
def: &ShapeDef,
geometry_id: u32,
ret_id: ShapeId,
)
pub fn write_create_height_field_shape( &mut self, body: BodyId, def: &ShapeDef, geometry_id: u32, ret_id: ShapeId, )
Write framed CreateHeightFieldShape op.
Sourcepub fn write_create_compound_shape(
&mut self,
body: BodyId,
def: &ShapeDef,
geometry_id: u32,
ret_id: ShapeId,
)
pub fn write_create_compound_shape( &mut self, body: BodyId, def: &ShapeDef, geometry_id: u32, ret_id: ShapeId, )
Write framed CreateCompoundShape op.
Sourcepub fn write_destroy_shape(&mut self, shape: ShapeId, update_body_mass: bool)
pub fn write_destroy_shape(&mut self, shape: ShapeId, update_body_mass: bool)
Write framed DestroyShape op.
Sourcepub fn write_shape_set_density(
&mut self,
shape: ShapeId,
density: f32,
update_body_mass: bool,
)
pub fn write_shape_set_density( &mut self, shape: ShapeId, density: f32, update_body_mass: bool, )
Write framed ShapeSetDensity op.
Sourcepub fn write_shape_set_friction(&mut self, shape: ShapeId, friction: f32)
pub fn write_shape_set_friction(&mut self, shape: ShapeId, friction: f32)
Write framed ShapeSetFriction op.
Sourcepub fn write_shape_set_restitution(&mut self, shape: ShapeId, restitution: f32)
pub fn write_shape_set_restitution(&mut self, shape: ShapeId, restitution: f32)
Write framed ShapeSetRestitution op.
Sourcepub fn write_shape_set_surface_material(
&mut self,
shape: ShapeId,
material: SurfaceMaterial,
)
pub fn write_shape_set_surface_material( &mut self, shape: ShapeId, material: SurfaceMaterial, )
Write framed ShapeSetSurfaceMaterial op.
Sourcepub fn write_shape_set_filter(
&mut self,
shape: ShapeId,
filter: Filter,
invoke_contacts: bool,
)
pub fn write_shape_set_filter( &mut self, shape: ShapeId, filter: Filter, invoke_contacts: bool, )
Write framed ShapeSetFilter op.
Sourcepub fn write_shape_enable_sensor_events(&mut self, shape: ShapeId, flag: bool)
pub fn write_shape_enable_sensor_events(&mut self, shape: ShapeId, flag: bool)
Write framed ShapeEnableSensorEvents op.
Sourcepub fn write_shape_enable_contact_events(&mut self, shape: ShapeId, flag: bool)
pub fn write_shape_enable_contact_events(&mut self, shape: ShapeId, flag: bool)
Write framed ShapeEnableContactEvents op.
Sourcepub fn write_shape_enable_pre_solve_events(
&mut self,
shape: ShapeId,
flag: bool,
)
pub fn write_shape_enable_pre_solve_events( &mut self, shape: ShapeId, flag: bool, )
Write framed ShapeEnablePreSolveEvents op.
Sourcepub fn write_shape_enable_hit_events(&mut self, shape: ShapeId, flag: bool)
pub fn write_shape_enable_hit_events(&mut self, shape: ShapeId, flag: bool)
Write framed ShapeEnableHitEvents op.
Sourcepub fn write_shape_set_sphere(&mut self, shape: ShapeId, sphere: Sphere)
pub fn write_shape_set_sphere(&mut self, shape: ShapeId, sphere: Sphere)
Write framed ShapeSetSphere op.
Sourcepub fn write_shape_set_capsule(&mut self, shape: ShapeId, capsule: Capsule)
pub fn write_shape_set_capsule(&mut self, shape: ShapeId, capsule: Capsule)
Write framed ShapeSetCapsule op.
Sourcepub fn write_shape_apply_wind(
&mut self,
shape: ShapeId,
wind: Vec3,
drag: f32,
lift: f32,
max_speed: f32,
wake: bool,
)
pub fn write_shape_apply_wind( &mut self, shape: ShapeId, wind: Vec3, drag: f32, lift: f32, max_speed: f32, wake: bool, )
Write framed ShapeApplyWind op.
Sourcepub fn write_shape_set_name(&mut self, shape: ShapeId, name: &str)
pub fn write_shape_set_name(&mut self, shape: ShapeId, name: &str)
Write framed ShapeSetName op.
Source§impl Recording
impl Recording
Sourcepub fn write_destroy_world(&mut self, world: WorldId)
pub fn write_destroy_world(&mut self, world: WorldId)
Write framed DestroyWorld op.
Sourcepub fn write_step(&mut self, world: WorldId, dt: f32, sub_step_count: i32)
pub fn write_step(&mut self, world: WorldId, dt: f32, sub_step_count: i32)
Write framed Step op.
Sourcepub fn write_world_enable_sleeping(&mut self, world: WorldId, flag: bool)
pub fn write_world_enable_sleeping(&mut self, world: WorldId, flag: bool)
Write framed WorldEnableSleeping op.
Sourcepub fn write_world_enable_continuous(&mut self, world: WorldId, flag: bool)
pub fn write_world_enable_continuous(&mut self, world: WorldId, flag: bool)
Write framed WorldEnableContinuous op.
Sourcepub fn write_world_set_restitution_threshold(
&mut self,
world: WorldId,
value: f32,
)
pub fn write_world_set_restitution_threshold( &mut self, world: WorldId, value: f32, )
Write framed WorldSetRestitutionThreshold op.
Sourcepub fn write_world_set_hit_event_threshold(
&mut self,
world: WorldId,
value: f32,
)
pub fn write_world_set_hit_event_threshold( &mut self, world: WorldId, value: f32, )
Write framed WorldSetHitEventThreshold op.
Sourcepub fn write_world_set_gravity(&mut self, world: WorldId, gravity: Vec3)
pub fn write_world_set_gravity(&mut self, world: WorldId, gravity: Vec3)
Write framed WorldSetGravity op.
Sourcepub fn write_world_explode(&mut self, world: WorldId, def: ExplosionDef)
pub fn write_world_explode(&mut self, world: WorldId, def: ExplosionDef)
Write framed WorldExplode op.
Sourcepub fn write_world_set_contact_tuning(
&mut self,
world: WorldId,
hertz: f32,
damping_ratio: f32,
contact_speed: f32,
)
pub fn write_world_set_contact_tuning( &mut self, world: WorldId, hertz: f32, damping_ratio: f32, contact_speed: f32, )
Write framed WorldSetContactTuning op.
Sourcepub fn write_world_set_contact_recycle_distance(
&mut self,
world: WorldId,
recycle_distance: f32,
)
pub fn write_world_set_contact_recycle_distance( &mut self, world: WorldId, recycle_distance: f32, )
Write framed WorldSetContactRecycleDistance op.
Sourcepub fn write_world_set_maximum_linear_speed(
&mut self,
world: WorldId,
maximum_linear_speed: f32,
)
pub fn write_world_set_maximum_linear_speed( &mut self, world: WorldId, maximum_linear_speed: f32, )
Write framed WorldSetMaximumLinearSpeed op.
Sourcepub fn write_world_enable_warm_starting(&mut self, world: WorldId, flag: bool)
pub fn write_world_enable_warm_starting(&mut self, world: WorldId, flag: bool)
Write framed WorldEnableWarmStarting op.
Sourcepub fn write_world_rebuild_static_tree(&mut self, world: WorldId)
pub fn write_world_rebuild_static_tree(&mut self, world: WorldId)
Write framed WorldRebuildStaticTree op.
Sourcepub fn write_world_enable_speculative(&mut self, world: WorldId, flag: bool)
pub fn write_world_enable_speculative(&mut self, world: WorldId, flag: bool)
Write framed WorldEnableSpeculative op.