CollisionParabola

from panda3d.core import CollisionParabola
class CollisionParabola

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 parabolaLParabola
Getter

Returns the parabola specified by this solid.

Setter

Replaces the parabola specified by this solid.

setParabola(parabola: LParabola)None

Replaces the parabola specified by this solid.

setT1(t1: float)None

Changes the starting point on the parabola.

setT2(t2: float)None

Changes the ending point on the parabola.

property t1float
Getter

Returns the starting point on the parabola.

Setter

Changes the starting point on the parabola.

property t2float
Getter

Returns the ending point on the parabola.

Setter

Changes the ending point on the parabola.