panda3d.core.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__() → 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.

static getClassType() → TypeHandle
Return type

TypeHandle

getParabola() → LParabola

Returns the parabola specified by this solid.

Return type

LParabola

getT1() → float

Returns the starting point on the parabola.

getT2() → float

Returns the ending point on the parabola.

property parabola
Getter

Returns the parabola specified by this solid.

Setter

Replaces the parabola specified by this solid.

Return type

LParabola

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