Struct RoverState
pub struct RoverState {
pub kinematics: RoverKinematics,
}Expand description
Dynamic vehicle suspension state and kinematics wrapper for 4-wheel rover exploration.
Fields§
§kinematics: RoverKinematicsImplementations§
§impl RoverState
impl RoverState
pub fn new(
chassis: VehicleChassisConfig,
wheel: WheelConfig,
start_position: [f32; 3],
) -> RoverState
pub fn new( chassis: VehicleChassisConfig, wheel: WheelConfig, start_position: [f32; 3], ) -> RoverState
Creates a new rover vehicle controller at start_position.
pub fn default_for_sector(start_position: [f32; 3]) -> RoverState
pub fn default_for_sector(start_position: [f32; 3]) -> RoverState
Standard rover configured for rugged terrain sectors.
pub fn step_3d<const MAX_LEAVES: usize>(
&mut self,
throttle: f32,
steer: f32,
brake: f32,
dt: f32,
bvh: &BroadphaseBvh<MAX_LEAVES>,
shapes: &[ColliderShape3D],
motors: &[Motor],
)
pub fn step_3d<const MAX_LEAVES: usize>( &mut self, throttle: f32, steer: f32, brake: f32, dt: f32, bvh: &BroadphaseBvh<MAX_LEAVES>, shapes: &[ColliderShape3D], motors: &[Motor], )
Advances rover physics using 3D sphere-cast wheel probes against the sector broadphase BVH.
Trait Implementations§
§impl Clone for RoverState
impl Clone for RoverState
§fn clone(&self) -> RoverState
fn clone(&self) -> RoverState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RoverState
§impl Debug for RoverState
impl Debug for RoverState
§impl Deref for RoverState
impl Deref for RoverState
§type Target = VehicleState
type Target = VehicleState
The resulting type after dereferencing.
§fn deref(&self) -> &<RoverState as Deref>::Target
fn deref(&self) -> &<RoverState as Deref>::Target
Dereferences the value.
§impl DerefMut for RoverState
impl DerefMut for RoverState
§fn deref_mut(&mut self) -> &mut <RoverState as Deref>::Target
fn deref_mut(&mut self) -> &mut <RoverState as Deref>::Target
Mutably dereferences the value.
Auto Trait Implementations§
impl Freeze for RoverState
impl RefUnwindSafe for RoverState
impl Send for RoverState
impl Sync for RoverState
impl Unpin for RoverState
impl UnsafeUnpin for RoverState
impl UnwindSafe for RoverState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more