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 getClassType() TypeHandle
getParabola() LParabola

Returns the parabola specified by this solid.

getT1() float

Returns the starting point on the parabola.

getT2() float

Returns the ending point on the parabola.

property parabola LParabola

Returns/Replaces the parabola specified by this solid.

setParabola(parabola: LParabola)

Replaces the parabola specified by this solid.

setT1(t1: float)

Changes the starting point on the parabola.

setT2(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.