Skip to main content

FfiWheelPhysicsControl

Struct FfiWheelPhysicsControl 

Source
pub struct FfiWheelPhysicsControl { /* private fields */ }

Implementations§

Source§

impl FfiWheelPhysicsControl

Source

pub fn new() -> impl New<Output = Self>

Source§

impl FfiWheelPhysicsControl

Source

pub fn get_axle_type(&self) -> u8

Source

pub fn get_wheel_radius(&self) -> f32

Source

pub fn get_wheel_width(&self) -> f32

Source

pub fn get_wheel_mass(&self) -> f32

Source

pub fn get_cornering_stiffness(&self) -> f32

Source

pub fn get_friction_force_multiplier(&self) -> f32

Source

pub fn get_side_slip_modifier(&self) -> f32

Source

pub fn get_slip_threshold(&self) -> f32

Source

pub fn get_skid_threshold(&self) -> f32

Source

pub fn get_max_steer_angle(&self) -> f32

Source

pub fn get_affected_by_steering(&self) -> bool

Source

pub fn get_affected_by_brake(&self) -> bool

Source

pub fn get_affected_by_handbrake(&self) -> bool

Source

pub fn get_affected_by_engine(&self) -> bool

Source

pub fn get_abs_enabled(&self) -> bool

Source

pub fn get_traction_control_enabled(&self) -> bool

Source

pub fn get_max_wheelspin_rotation(&self) -> f32

Source

pub fn get_external_torque_combine_method(&self) -> u8

Source

pub fn get_suspension_max_raise(&self) -> f32

Source

pub fn get_suspension_max_drop(&self) -> f32

Source

pub fn get_suspension_damping_ratio(&self) -> f32

Source

pub fn get_wheel_load_ratio(&self) -> f32

Source

pub fn get_spring_rate(&self) -> f32

Source

pub fn get_spring_preload(&self) -> f32

Source

pub fn get_suspension_smoothing(&self) -> i32

Source

pub fn get_rollbar_scaling(&self) -> f32

Source

pub fn get_sweep_shape(&self) -> u8

Source

pub fn get_sweep_type(&self) -> u8

Source

pub fn get_max_brake_torque(&self) -> f32

Source

pub fn get_max_hand_brake_torque(&self) -> f32

Source

pub fn get_wheel_index(&self) -> i32

Source

pub fn get_offset(&self) -> FfiVector3D

Source

pub fn get_suspension_axis(&self) -> FfiVector3D

Source

pub fn get_suspension_force_offset(&self) -> FfiVector3D

Source

pub fn get_location(&self) -> FfiLocation

Source

pub fn get_old_location(&self) -> FfiLocation

Source

pub fn get_velocity(&self) -> FfiLocation

Source

pub fn get_lateral_slip_graph<'a>(&'a self) -> &'a CxxVector<Vector2D>

Source

pub fn set_axle_type(self: Pin<&mut Self>, v: u8)

Source

pub fn set_offset(self: Pin<&mut Self>, v: &FfiVector3D)

Source

pub fn set_wheel_radius(self: Pin<&mut Self>, v: f32)

Source

pub fn set_wheel_width(self: Pin<&mut Self>, v: f32)

Source

pub fn set_wheel_mass(self: Pin<&mut Self>, v: f32)

Source

pub fn set_cornering_stiffness(self: Pin<&mut Self>, v: f32)

Source

pub fn set_friction_force_multiplier(self: Pin<&mut Self>, v: f32)

Source

pub fn set_side_slip_modifier(self: Pin<&mut Self>, v: f32)

Source

pub fn set_slip_threshold(self: Pin<&mut Self>, v: f32)

Source

pub fn set_skid_threshold(self: Pin<&mut Self>, v: f32)

Source

pub fn set_max_steer_angle(self: Pin<&mut Self>, v: f32)

Source

pub fn set_affected_by_steering(self: Pin<&mut Self>, v: bool)

Source

pub fn set_affected_by_brake(self: Pin<&mut Self>, v: bool)

Source

pub fn set_affected_by_handbrake(self: Pin<&mut Self>, v: bool)

Source

pub fn set_affected_by_engine(self: Pin<&mut Self>, v: bool)

Source

pub fn set_abs_enabled(self: Pin<&mut Self>, v: bool)

Source

pub fn set_traction_control_enabled(self: Pin<&mut Self>, v: bool)

Source

pub fn set_max_wheelspin_rotation(self: Pin<&mut Self>, v: f32)

Source

pub fn set_external_torque_combine_method(self: Pin<&mut Self>, v: u8)

Source

pub fn set_lateral_slip_graph(self: Pin<&mut Self>, v: &CxxVector<Vector2D>)

Source

pub fn set_suspension_axis(self: Pin<&mut Self>, v: &FfiVector3D)

Source

pub fn set_suspension_force_offset(self: Pin<&mut Self>, v: &FfiVector3D)

Source

pub fn set_suspension_max_raise(self: Pin<&mut Self>, v: f32)

Source

pub fn set_suspension_max_drop(self: Pin<&mut Self>, v: f32)

Source

pub fn set_suspension_damping_ratio(self: Pin<&mut Self>, v: f32)

Source

pub fn set_wheel_load_ratio(self: Pin<&mut Self>, v: f32)

Source

pub fn set_spring_rate(self: Pin<&mut Self>, v: f32)

Source

pub fn set_spring_preload(self: Pin<&mut Self>, v: f32)

Source

pub fn set_suspension_smoothing(self: Pin<&mut Self>, v: i32)

Source

pub fn set_rollbar_scaling(self: Pin<&mut Self>, v: f32)

Source

pub fn set_sweep_shape(self: Pin<&mut Self>, v: u8)

Source

pub fn set_sweep_type(self: Pin<&mut Self>, v: u8)

Source

pub fn set_max_brake_torque(self: Pin<&mut Self>, v: f32)

Source

pub fn set_max_hand_brake_torque(self: Pin<&mut Self>, v: f32)

Source

pub fn set_wheel_index(self: Pin<&mut Self>, v: i32)

Source

pub fn set_location(self: Pin<&mut Self>, v: &FfiLocation)

Source

pub fn set_old_location(self: Pin<&mut Self>, v: &FfiLocation)

Source

pub fn set_velocity(self: Pin<&mut Self>, v: &FfiLocation)

Trait Implementations§

Source§

impl Drop for FfiWheelPhysicsControl

Source§

fn drop(self: &mut FfiWheelPhysicsControl)

Synthesized destructor.

Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl ExternType for FfiWheelPhysicsControl

Source§

type Id = (c, a, r, l, a, __, r, u, s, t, (), r, p, c, (), F, f, i, W, h, e, e, l, P, h, y, s, i, c, s, C, o, n, t, r, o, l)

A type-level representation of the type’s C++ namespace and type name. Read more
Source§

type Kind = Opaque

Source§

impl MakeCppStorage for FfiWheelPhysicsControl

Source§

unsafe fn allocate_uninitialized_cpp_storage() -> *mut FfiWheelPhysicsControl

Allocates heap space for this type in C++ and return a pointer to that space, but do not initialize that space (i.e. do not yet call a constructor). Read more
Source§

unsafe fn free_uninitialized_cpp_storage(arg0: *mut FfiWheelPhysicsControl)

Frees a C++ allocation which has not yet had a constructor called. Read more
Source§

impl MoveNew for FfiWheelPhysicsControl

Source§

unsafe fn move_new( other: Pin<MoveRef<'_, FfiWheelPhysicsControl>>, this: Pin<&mut MaybeUninit<FfiWheelPhysicsControl>>, )

Synthesized move constructor.

Source§

impl SharedPtrTarget for FfiWheelPhysicsControl

Source§

impl UniquePtrTarget for FfiWheelPhysicsControl

Source§

impl VectorElement for FfiWheelPhysicsControl

Source§

impl WeakPtrTarget for FfiWheelPhysicsControl

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.