Struct ncollide_procedural::path::ArrowheadCap
[−]
[src]
pub struct ArrowheadCap<N> { // some fields omitted }
A cap that looks like an arrow.
Methods
impl<N> ArrowheadCap<N> where N: Scalar
[src]
fn new(radius_scale: N, front_dist_to_head: N, back_dist_to_head: N) -> ArrowheadCap<N>
Creates a cap that looks like an arrow.
Arguments:
radius_scale
- scale factor of the cap base.front_dist_to_head
- distance from the path endpoint and the arrow tip.back_dist_to_head
- distance from the path endpoint and the cap base.
Trait Implementations
impl<N> PolylineCompatibleCap<N> for ArrowheadCap<N> where N: Scalar
[src]
fn gen_end_cap(&self, attach_id: u32, pattern: &Polyline<Pnt3<N>>, pt: &Pnt3<N>, dir: &Vec3<N>, closed: bool, coords: &mut Vec<Pnt3<N>>, indices: &mut Vec<Pnt3<u32>>)
Generates the mesh for the cap at the end of a path.
fn gen_start_cap(&self, attach_id: u32, pattern: &Polyline<Pnt3<N>>, pt: &Pnt3<N>, dir: &Vec3<N>, closed: bool, coords: &mut Vec<Pnt3<N>>, indices: &mut Vec<Pnt3<u32>>)
Generates the mesh for the cap at the beginning of a path.