pub struct SplineControlPoint {
pub position: Vec3,
pub twist: f32,
pub gap_after: bool,
}Expand description
A single control point on a Catmull-Rom spline.
Fields§
§position: Vec3§twist: f32Twist (banking) in degrees around the forward axis.
gap_after: boolWhen true, road geometry and physics are omitted from this CP to the next,
creating a gap/jump. Consecutive gap_after CPs merge into longer gaps.
Trait Implementations§
Source§impl Clone for SplineControlPoint
impl Clone for SplineControlPoint
Source§fn clone(&self) -> SplineControlPoint
fn clone(&self) -> SplineControlPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SplineControlPoint
impl RefUnwindSafe for SplineControlPoint
impl Send for SplineControlPoint
impl Sync for SplineControlPoint
impl Unpin for SplineControlPoint
impl UnwindSafe for SplineControlPoint
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