CollisionParabola

from panda3d.core import CollisionParabola
class CollisionParabola

Bases:

Bases: CollisionSolid

This defines a parabolic arc, or subset of an arc, similar to the path of a projectile or falling object. It is finite, having a specific beginning and end, but it is infinitely thin.

Think of it as a wire bending from point t1 to point t2 along the path of a pre-defined parabola.

Inheritance diagram

Inheritance diagram of CollisionParabola

__init__()

Creates an invalid parabola.

__init__(parabola: LParabola, t1: float, t2: float)

Creates a parabola with the endpoints between t1 and t2 in the parametric space of the parabola.

static get_class_type() TypeHandle
get_parabola() LParabola

Returns the parabola specified by this solid.

get_t1() float

Returns the starting point on the parabola.

get_t2() float

Returns the ending point on the parabola.

property parabola LParabola

Returns/Replaces the parabola specified by this solid.

set_parabola(parabola: LParabola)

Replaces the parabola specified by this solid.

set_t1(t1: float)

Changes the starting point on the parabola.

set_t2(t2: float)

Changes the ending point on the parabola.

property t1 float

Returns/Changes the starting point on the parabola.

property t2 float

Returns/Changes the ending point on the parabola.