Skip to main content

Recording

Struct Recording 

Source
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: i32

Offset of the 3-byte size field for u24 backpatch.

§registry: GeometryRegistry§tags: Vec<RecTag>§accumulated_bounds: Aabb§have_bounds: bool

Implementations§

Source§

impl Recording

Source

pub fn new(byte_capacity: i32) -> Self

(b3CreateRecording)

Source

pub fn data(&self) -> &[u8]

Source

pub fn size(&self) -> i32

Source

pub fn begin_record(&mut self, opcode: u8)

(b3RecBeginRecord)

Source

pub fn end_record(&mut self)

(b3RecEndRecord)

Source

pub fn commit_record(&mut self, opcode: u8, payload: &[u8])

(b3RecCommitRecord)

Source

pub fn accumulate_bounds(&mut self, bounds: Aabb)

(b3RecAccumulateBounds)

Source

pub fn hash_query_tag(id: u64, name: &str) -> u64

(b3HashQueryTag)

Source

pub fn intern_tag(&mut self, key: u64, id: u64, name: &str)

(b3RecInternTag)

Source

pub fn write_registry(&mut self)

(b3RecWriteRegistry)

Source§

impl Recording

Source

pub fn write_create_body( &mut self, world: WorldId, def: &BodyDef, ret_id: BodyId, )

Write framed CreateBody op.

Source

pub fn write_destroy_body(&mut self, body: BodyId)

Write framed DestroyBody op.

Source

pub fn write_body_set_transform( &mut self, body: BodyId, position: Pos, rotation: Quat, )

Write framed BodySetTransform op.

Source

pub fn write_body_set_linear_velocity(&mut self, body: BodyId, v: Vec3)

Write framed BodySetLinearVelocity op.

Source

pub fn write_body_set_type(&mut self, body: BodyId, type_: i32)

Write framed BodySetType op.

Source

pub fn write_body_set_name(&mut self, body: BodyId, name: &str)

Write framed BodySetName op.

Source

pub fn write_body_set_angular_velocity(&mut self, body: BodyId, w: Vec3)

Write framed BodySetAngularVelocity op.

Source

pub fn write_body_set_target_transform( &mut self, body: BodyId, target: WorldTransform, time_step: f32, wake: bool, )

Write framed BodySetTargetTransform op.

Source

pub fn write_body_apply_force( &mut self, body: BodyId, force: Vec3, point: Pos, wake: bool, )

Write framed BodyApplyForce op.

Source

pub fn write_body_apply_force_to_center( &mut self, body: BodyId, force: Vec3, wake: bool, )

Write framed BodyApplyForceToCenter op.

Source

pub fn write_body_apply_torque( &mut self, body: BodyId, torque: Vec3, wake: bool, )

Write framed BodyApplyTorque op.

Source

pub fn write_body_apply_linear_impulse( &mut self, body: BodyId, impulse: Vec3, point: Pos, wake: bool, )

Write framed BodyApplyLinearImpulse op.

Source

pub fn write_body_apply_linear_impulse_to_center( &mut self, body: BodyId, impulse: Vec3, wake: bool, )

Write framed BodyApplyLinearImpulseToCenter op.

Source

pub fn write_body_apply_angular_impulse( &mut self, body: BodyId, impulse: Vec3, wake: bool, )

Write framed BodyApplyAngularImpulse op.

Source

pub fn write_body_set_mass_data(&mut self, body: BodyId, mass_data: MassData)

Write framed BodySetMassData op.

Source

pub fn write_body_apply_mass_from_shapes(&mut self, body: BodyId)

Write framed BodyApplyMassFromShapes op.

Source

pub fn write_body_set_linear_damping(&mut self, body: BodyId, damping: f32)

Write framed BodySetLinearDamping op.

Source

pub fn write_body_set_angular_damping(&mut self, body: BodyId, damping: f32)

Write framed BodySetAngularDamping op.

Source

pub fn write_body_set_gravity_scale(&mut self, body: BodyId, scale: f32)

Write framed BodySetGravityScale op.

Source

pub fn write_body_set_awake(&mut self, body: BodyId, awake: bool)

Write framed BodySetAwake op.

Source

pub fn write_body_enable_sleep(&mut self, body: BodyId, flag: bool)

Write framed BodyEnableSleep op.

Source

pub fn write_body_set_sleep_threshold(&mut self, body: BodyId, threshold: f32)

Write framed BodySetSleepThreshold op.

Source

pub fn write_body_disable(&mut self, body: BodyId)

Write framed BodyDisable op.

Source

pub fn write_body_enable(&mut self, body: BodyId)

Write framed BodyEnable op.

Source

pub fn write_body_set_motion_locks(&mut self, body: BodyId, locks: MotionLocks)

Write framed BodySetMotionLocks op.

Source

pub fn write_body_set_bullet(&mut self, body: BodyId, flag: bool)

Write framed BodySetBullet op.

Source

pub fn write_body_enable_contact_recycling(&mut self, body: BodyId, flag: bool)

Write framed BodyEnableContactRecycling op.

Source

pub fn write_body_enable_hit_events(&mut self, body: BodyId, flag: bool)

Write framed BodyEnableHitEvents op.

Source§

impl Recording

Source

pub fn write_create_parallel_joint( &mut self, world: WorldId, def: &ParallelJointDef, ret_id: JointId, )

Write framed CreateParallelJoint op.

Source

pub fn write_create_distance_joint( &mut self, world: WorldId, def: &DistanceJointDef, ret_id: JointId, )

Write framed CreateDistanceJoint op.

Source

pub fn write_create_filter_joint( &mut self, world: WorldId, def: &FilterJointDef, ret_id: JointId, )

Write framed CreateFilterJoint op.

Source

pub fn write_create_motor_joint( &mut self, world: WorldId, def: &MotorJointDef, ret_id: JointId, )

Write framed CreateMotorJoint op.

Source

pub fn write_create_prismatic_joint( &mut self, world: WorldId, def: &PrismaticJointDef, ret_id: JointId, )

Write framed CreatePrismaticJoint op.

Source

pub fn write_create_revolute_joint( &mut self, world: WorldId, def: &RevoluteJointDef, ret_id: JointId, )

Write framed CreateRevoluteJoint op.

Source

pub fn write_create_spherical_joint( &mut self, world: WorldId, def: &SphericalJointDef, ret_id: JointId, )

Write framed CreateSphericalJoint op.

Source

pub fn write_create_weld_joint( &mut self, world: WorldId, def: &WeldJointDef, ret_id: JointId, )

Write framed CreateWeldJoint op.

Source

pub fn write_create_wheel_joint( &mut self, world: WorldId, def: &WheelJointDef, ret_id: JointId, )

Write framed CreateWheelJoint op.

Source

pub fn write_destroy_joint(&mut self, joint: JointId, wake_attached: bool)

Write framed DestroyJoint op.

Source

pub fn write_joint_set_local_frame_a( &mut self, joint: JointId, local_frame: Transform, )

Write framed JointSetLocalFrameA op.

Source

pub fn write_joint_set_local_frame_b( &mut self, joint: JointId, local_frame: Transform, )

Write framed JointSetLocalFrameB op.

Source

pub fn write_joint_set_collide_connected( &mut self, joint: JointId, should_collide: bool, )

Write framed JointSetCollideConnected op.

Source

pub fn write_joint_wake_bodies(&mut self, joint: JointId)

Write framed JointWakeBodies op.

Source

pub fn write_joint_set_constraint_tuning( &mut self, joint: JointId, hertz: f32, damping_ratio: f32, )

Write framed JointSetConstraintTuning op.

Source

pub fn write_joint_set_force_threshold( &mut self, joint: JointId, threshold: f32, )

Write framed JointSetForceThreshold op.

Source

pub fn write_joint_set_torque_threshold( &mut self, joint: JointId, threshold: f32, )

Write framed JointSetTorqueThreshold op.

Source§

impl Recording

Source

pub fn write_parallel_joint_set_spring_hertz( &mut self, joint: JointId, hertz: f32, )

Write framed ParallelJointSetSpringHertz op.

Source

pub fn write_parallel_joint_set_spring_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )

Write framed ParallelJointSetSpringDampingRatio op.

Source

pub fn write_parallel_joint_set_max_torque( &mut self, joint: JointId, max_torque: f32, )

Write framed ParallelJointSetMaxTorque op.

Source

pub fn write_distance_joint_set_length(&mut self, joint: JointId, length: f32)

Write framed DistanceJointSetLength op.

Source

pub fn write_distance_joint_enable_spring( &mut self, joint: JointId, enable_spring: bool, )

Write framed DistanceJointEnableSpring op.

Source

pub fn write_distance_joint_set_spring_force_range( &mut self, joint: JointId, lower_force: f32, upper_force: f32, )

Write framed DistanceJointSetSpringForceRange op.

Source

pub fn write_distance_joint_set_spring_hertz( &mut self, joint: JointId, hertz: f32, )

Write framed DistanceJointSetSpringHertz op.

Source

pub fn write_distance_joint_set_spring_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )

Write framed DistanceJointSetSpringDampingRatio op.

Source

pub fn write_distance_joint_enable_limit( &mut self, joint: JointId, enable_limit: bool, )

Write framed DistanceJointEnableLimit op.

Source

pub fn write_distance_joint_set_length_range( &mut self, joint: JointId, min_length: f32, max_length: f32, )

Write framed DistanceJointSetLengthRange op.

Source

pub fn write_distance_joint_enable_motor( &mut self, joint: JointId, enable_motor: bool, )

Write framed DistanceJointEnableMotor op.

Source

pub fn write_distance_joint_set_motor_speed( &mut self, joint: JointId, motor_speed: f32, )

Write framed DistanceJointSetMotorSpeed op.

Source

pub fn write_distance_joint_set_max_motor_force( &mut self, joint: JointId, force: f32, )

Write framed DistanceJointSetMaxMotorForce op.

Source

pub fn write_motor_joint_set_linear_velocity( &mut self, joint: JointId, velocity: Vec3, )

Write framed MotorJointSetLinearVelocity op.

Source

pub fn write_motor_joint_set_angular_velocity( &mut self, joint: JointId, velocity: Vec3, )

Write framed MotorJointSetAngularVelocity op.

Source

pub fn write_motor_joint_set_max_velocity_force( &mut self, joint: JointId, max_force: f32, )

Write framed MotorJointSetMaxVelocityForce op.

Source

pub fn write_motor_joint_set_max_velocity_torque( &mut self, joint: JointId, max_torque: f32, )

Write framed MotorJointSetMaxVelocityTorque op.

Source

pub fn write_motor_joint_set_linear_hertz(&mut self, joint: JointId, hertz: f32)

Write framed MotorJointSetLinearHertz op.

Source

pub fn write_motor_joint_set_linear_damping_ratio( &mut self, joint: JointId, damping: f32, )

Write framed MotorJointSetLinearDampingRatio op.

Source

pub fn write_motor_joint_set_angular_hertz( &mut self, joint: JointId, hertz: f32, )

Write framed MotorJointSetAngularHertz op.

Source

pub fn write_motor_joint_set_angular_damping_ratio( &mut self, joint: JointId, damping: f32, )

Write framed MotorJointSetAngularDampingRatio op.

Source

pub fn write_motor_joint_set_max_spring_force( &mut self, joint: JointId, max_force: f32, )

Write framed MotorJointSetMaxSpringForce op.

Source

pub fn write_motor_joint_set_max_spring_torque( &mut self, joint: JointId, max_torque: f32, )

Write framed MotorJointSetMaxSpringTorque op.

Source

pub fn write_prismatic_joint_enable_spring( &mut self, joint: JointId, enable_spring: bool, )

Write framed PrismaticJointEnableSpring op.

Source

pub fn write_prismatic_joint_set_spring_hertz( &mut self, joint: JointId, hertz: f32, )

Write framed PrismaticJointSetSpringHertz op.

Source

pub fn write_prismatic_joint_set_spring_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )

Write framed PrismaticJointSetSpringDampingRatio op.

Source

pub fn write_prismatic_joint_set_target_translation( &mut self, joint: JointId, translation: f32, )

Write framed PrismaticJointSetTargetTranslation op.

Source

pub fn write_prismatic_joint_enable_limit( &mut self, joint: JointId, enable_limit: bool, )

Write framed PrismaticJointEnableLimit op.

Source

pub fn write_prismatic_joint_set_limits( &mut self, joint: JointId, lower: f32, upper: f32, )

Write framed PrismaticJointSetLimits op.

Source

pub fn write_prismatic_joint_enable_motor( &mut self, joint: JointId, enable_motor: bool, )

Write framed PrismaticJointEnableMotor op.

Source

pub fn write_prismatic_joint_set_motor_speed( &mut self, joint: JointId, motor_speed: f32, )

Write framed PrismaticJointSetMotorSpeed op.

Source

pub fn write_prismatic_joint_set_max_motor_force( &mut self, joint: JointId, force: f32, )

Write framed PrismaticJointSetMaxMotorForce op.

Source

pub fn write_revolute_joint_enable_spring( &mut self, joint: JointId, enable_spring: bool, )

Write framed RevoluteJointEnableSpring op.

Source

pub fn write_revolute_joint_set_spring_hertz( &mut self, joint: JointId, hertz: f32, )

Write framed RevoluteJointSetSpringHertz op.

Source

pub fn write_revolute_joint_set_spring_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )

Write framed RevoluteJointSetSpringDampingRatio op.

Source

pub fn write_revolute_joint_set_target_angle( &mut self, joint: JointId, angle: f32, )

Write framed RevoluteJointSetTargetAngle op.

Source

pub fn write_revolute_joint_enable_limit( &mut self, joint: JointId, enable_limit: bool, )

Write framed RevoluteJointEnableLimit op.

Source

pub fn write_revolute_joint_set_limits( &mut self, joint: JointId, lower: f32, upper: f32, )

Write framed RevoluteJointSetLimits op.

Source

pub fn write_revolute_joint_enable_motor( &mut self, joint: JointId, enable_motor: bool, )

Write framed RevoluteJointEnableMotor op.

Source

pub fn write_revolute_joint_set_motor_speed( &mut self, joint: JointId, motor_speed: f32, )

Write framed RevoluteJointSetMotorSpeed op.

Source

pub fn write_revolute_joint_set_max_motor_torque( &mut self, joint: JointId, torque: f32, )

Write framed RevoluteJointSetMaxMotorTorque op.

Source

pub fn write_spherical_joint_enable_cone_limit( &mut self, joint: JointId, enable_limit: bool, )

Write framed SphericalJointEnableConeLimit op.

Source

pub fn write_spherical_joint_set_cone_limit( &mut self, joint: JointId, angle_radians: f32, )

Write framed SphericalJointSetConeLimit op.

Source

pub fn write_spherical_joint_enable_twist_limit( &mut self, joint: JointId, enable_limit: bool, )

Write framed SphericalJointEnableTwistLimit op.

Source

pub fn write_spherical_joint_set_twist_limits( &mut self, joint: JointId, lower: f32, upper: f32, )

Write framed SphericalJointSetTwistLimits op.

Source

pub fn write_spherical_joint_enable_spring( &mut self, joint: JointId, enable_spring: bool, )

Write framed SphericalJointEnableSpring op.

Source

pub fn write_spherical_joint_set_spring_hertz( &mut self, joint: JointId, hertz: f32, )

Write framed SphericalJointSetSpringHertz op.

Source

pub fn write_spherical_joint_set_spring_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )

Write framed SphericalJointSetSpringDampingRatio op.

Source

pub fn write_spherical_joint_set_target_rotation( &mut self, joint: JointId, target_rotation: Quat, )

Write framed SphericalJointSetTargetRotation op.

Source

pub fn write_spherical_joint_enable_motor( &mut self, joint: JointId, enable_motor: bool, )

Write framed SphericalJointEnableMotor op.

Source

pub fn write_spherical_joint_set_motor_velocity( &mut self, joint: JointId, motor_velocity: Vec3, )

Write framed SphericalJointSetMotorVelocity op.

Source

pub fn write_spherical_joint_set_max_motor_torque( &mut self, joint: JointId, torque: f32, )

Write framed SphericalJointSetMaxMotorTorque op.

Source

pub fn write_weld_joint_set_linear_hertz(&mut self, joint: JointId, hertz: f32)

Write framed WeldJointSetLinearHertz op.

Source

pub fn write_weld_joint_set_linear_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )

Write framed WeldJointSetLinearDampingRatio op.

Source

pub fn write_weld_joint_set_angular_hertz(&mut self, joint: JointId, hertz: f32)

Write framed WeldJointSetAngularHertz op.

Source

pub fn write_weld_joint_set_angular_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )

Write framed WeldJointSetAngularDampingRatio op.

Source

pub fn write_wheel_joint_enable_suspension( &mut self, joint: JointId, flag: bool, )

Write framed WheelJointEnableSuspension op.

Source

pub fn write_wheel_joint_set_suspension_hertz( &mut self, joint: JointId, hertz: f32, )

Write framed WheelJointSetSuspensionHertz op.

Source

pub fn write_wheel_joint_set_suspension_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )

Write framed WheelJointSetSuspensionDampingRatio op.

Source

pub fn write_wheel_joint_enable_suspension_limit( &mut self, joint: JointId, flag: bool, )

Write framed WheelJointEnableSuspensionLimit op.

Source

pub fn write_wheel_joint_set_suspension_limits( &mut self, joint: JointId, lower: f32, upper: f32, )

Write framed WheelJointSetSuspensionLimits op.

Source

pub fn write_wheel_joint_enable_spin_motor( &mut self, joint: JointId, flag: bool, )

Write framed WheelJointEnableSpinMotor op.

Source

pub fn write_wheel_joint_set_spin_motor_speed( &mut self, joint: JointId, speed: f32, )

Write framed WheelJointSetSpinMotorSpeed op.

Source

pub fn write_wheel_joint_set_max_spin_torque( &mut self, joint: JointId, torque: f32, )

Write framed WheelJointSetMaxSpinTorque op.

Source

pub fn write_wheel_joint_enable_steering(&mut self, joint: JointId, flag: bool)

Write framed WheelJointEnableSteering op.

Source

pub fn write_wheel_joint_set_steering_hertz( &mut self, joint: JointId, hertz: f32, )

Write framed WheelJointSetSteeringHertz op.

Source

pub fn write_wheel_joint_set_steering_damping_ratio( &mut self, joint: JointId, damping_ratio: f32, )

Write framed WheelJointSetSteeringDampingRatio op.

Source

pub fn write_wheel_joint_set_max_steering_torque( &mut self, joint: JointId, torque: f32, )

Write framed WheelJointSetMaxSteeringTorque op.

Source

pub fn write_wheel_joint_enable_steering_limit( &mut self, joint: JointId, flag: bool, )

Write framed WheelJointEnableSteeringLimit op.

Source

pub fn write_wheel_joint_set_steering_limits( &mut self, joint: JointId, lower: f32, upper: f32, )

Write framed WheelJointSetSteeringLimits op.

Source

pub fn write_wheel_joint_set_target_steering_angle( &mut self, joint: JointId, radians: f32, )

Write framed WheelJointSetTargetSteeringAngle op.

Source§

impl Recording

Source

pub fn write_query_overlap_aabb( &mut self, world: WorldId, aabb: Aabb, filter: &QueryFilter, )

Write framed QueryOverlapAABB op.

Source

pub fn write_query_overlap_shape( &mut self, world: WorldId, origin: Pos, proxy: &ShapeProxy, filter: &QueryFilter, )

Write framed QueryOverlapShape op.

Source

pub fn write_query_cast_ray( &mut self, world: WorldId, origin: Pos, translation: Vec3, filter: &QueryFilter, )

Write framed QueryCastRay op.

Source

pub fn write_query_cast_shape( &mut self, world: WorldId, origin: Pos, proxy: &ShapeProxy, translation: Vec3, filter: &QueryFilter, )

Write framed QueryCastShape op.

Source

pub fn write_query_cast_ray_closest( &mut self, world: WorldId, origin: Pos, translation: Vec3, filter: &QueryFilter, )

Write framed QueryCastRayClosest op.

Source

pub fn write_query_cast_mover( &mut self, world: WorldId, origin: Pos, mover: Capsule, translation: Vec3, filter: &QueryFilter, )

Write framed QueryCastMover op.

Source

pub fn write_query_collide_mover( &mut self, world: WorldId, origin: Pos, mover: Capsule, filter: &QueryFilter, )

Write framed QueryCollideMover op.

Source

pub fn write_query_tag(&mut self, key: u64)

Write framed QueryTag op.

Source

pub fn write_state_hash(&mut self, world: WorldId, hash: u64)

Write framed StateHash op.

Source

pub fn write_recording_bounds(&mut self, bounds: Aabb)

Write framed RecordingBounds op.

Source§

impl Recording

Source

pub fn write_create_sphere_shape( &mut self, body: BodyId, def: &ShapeDef, sphere: Sphere, ret_id: ShapeId, )

Write framed CreateSphereShape op.

Source

pub fn write_create_capsule_shape( &mut self, body: BodyId, def: &ShapeDef, capsule: Capsule, ret_id: ShapeId, )

Write framed CreateCapsuleShape op.

Source

pub fn write_create_hull_shape( &mut self, body: BodyId, def: &ShapeDef, geometry_id: u32, ret_id: ShapeId, )

Write framed CreateHullShape op.

Source

pub fn write_create_mesh_shape( &mut self, body: BodyId, def: &ShapeDef, geometry_id: u32, scale: Vec3, ret_id: ShapeId, )

Write framed CreateMeshShape op.

Source

pub fn write_create_height_field_shape( &mut self, body: BodyId, def: &ShapeDef, geometry_id: u32, ret_id: ShapeId, )

Write framed CreateHeightFieldShape op.

Source

pub fn write_create_compound_shape( &mut self, body: BodyId, def: &ShapeDef, geometry_id: u32, ret_id: ShapeId, )

Write framed CreateCompoundShape op.

Source

pub fn write_destroy_shape(&mut self, shape: ShapeId, update_body_mass: bool)

Write framed DestroyShape op.

Source

pub fn write_shape_set_density( &mut self, shape: ShapeId, density: f32, update_body_mass: bool, )

Write framed ShapeSetDensity op.

Source

pub fn write_shape_set_friction(&mut self, shape: ShapeId, friction: f32)

Write framed ShapeSetFriction op.

Source

pub fn write_shape_set_restitution(&mut self, shape: ShapeId, restitution: f32)

Write framed ShapeSetRestitution op.

Source

pub fn write_shape_set_surface_material( &mut self, shape: ShapeId, material: SurfaceMaterial, )

Write framed ShapeSetSurfaceMaterial op.

Source

pub fn write_shape_set_filter( &mut self, shape: ShapeId, filter: Filter, invoke_contacts: bool, )

Write framed ShapeSetFilter op.

Source

pub fn write_shape_enable_sensor_events(&mut self, shape: ShapeId, flag: bool)

Write framed ShapeEnableSensorEvents op.

Source

pub fn write_shape_enable_contact_events(&mut self, shape: ShapeId, flag: bool)

Write framed ShapeEnableContactEvents op.

Source

pub fn write_shape_enable_pre_solve_events( &mut self, shape: ShapeId, flag: bool, )

Write framed ShapeEnablePreSolveEvents op.

Source

pub fn write_shape_enable_hit_events(&mut self, shape: ShapeId, flag: bool)

Write framed ShapeEnableHitEvents op.

Source

pub fn write_shape_set_sphere(&mut self, shape: ShapeId, sphere: Sphere)

Write framed ShapeSetSphere op.

Source

pub fn write_shape_set_capsule(&mut self, shape: ShapeId, capsule: Capsule)

Write framed ShapeSetCapsule op.

Source

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.

Source

pub fn write_shape_set_name(&mut self, shape: ShapeId, name: &str)

Write framed ShapeSetName op.

Source§

impl Recording

Source

pub fn write_destroy_world(&mut self, world: WorldId)

Write framed DestroyWorld op.

Source

pub fn write_step(&mut self, world: WorldId, dt: f32, sub_step_count: i32)

Write framed Step op.

Source

pub fn write_world_enable_sleeping(&mut self, world: WorldId, flag: bool)

Write framed WorldEnableSleeping op.

Source

pub fn write_world_enable_continuous(&mut self, world: WorldId, flag: bool)

Write framed WorldEnableContinuous op.

Source

pub fn write_world_set_restitution_threshold( &mut self, world: WorldId, value: f32, )

Write framed WorldSetRestitutionThreshold op.

Source

pub fn write_world_set_hit_event_threshold( &mut self, world: WorldId, value: f32, )

Write framed WorldSetHitEventThreshold op.

Source

pub fn write_world_set_gravity(&mut self, world: WorldId, gravity: Vec3)

Write framed WorldSetGravity op.

Source

pub fn write_world_explode(&mut self, world: WorldId, def: ExplosionDef)

Write framed WorldExplode op.

Source

pub fn write_world_set_contact_tuning( &mut self, world: WorldId, hertz: f32, damping_ratio: f32, contact_speed: f32, )

Write framed WorldSetContactTuning op.

Source

pub fn write_world_set_contact_recycle_distance( &mut self, world: WorldId, recycle_distance: f32, )

Write framed WorldSetContactRecycleDistance op.

Source

pub fn write_world_set_maximum_linear_speed( &mut self, world: WorldId, maximum_linear_speed: f32, )

Write framed WorldSetMaximumLinearSpeed op.

Source

pub fn write_world_enable_warm_starting(&mut self, world: WorldId, flag: bool)

Write framed WorldEnableWarmStarting op.

Source

pub fn write_world_rebuild_static_tree(&mut self, world: WorldId)

Write framed WorldRebuildStaticTree op.

Source

pub fn write_world_enable_speculative(&mut self, world: WorldId, flag: bool)

Write framed WorldEnableSpeculative op.

Trait Implementations§

Source§

impl Debug for Recording

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.