# panda3d.core.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

__init__() → None

Creates an invalid parabola.

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

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

setParabola(parabola: LParabola) → None

Replaces the parabola specified by this solid.

getParabola() → LParabola

Returns the parabola specified by this solid.

Return type

LParabola

setT1(t1: float) → None

Changes the starting point on the parabola.

getT1() → float

Returns the starting point on the parabola.

setT2(t2: float) → None

Changes the ending point on the parabola.

getT2() → float

Returns the ending point on the parabola.

static getClassType() → TypeHandle
Return type

TypeHandle

property parabola
Getter

Returns the parabola specified by this solid.

Setter

Replaces the parabola specified by this solid.

Return type

LParabola

property t1
Getter

Returns the starting point on the parabola.

Setter

Changes the starting point on the parabola.

Return type

float

property t2
Getter

Returns the ending point on the parabola.

Setter

Changes the ending point on the parabola.

Return type

float