panda3d.bullet.BulletHeightfieldShape

from panda3d.bullet import BulletHeightfieldShape
class BulletHeightfieldShape

Bases: BulletShape

Inheritance diagram

Inheritance diagram of BulletHeightfieldShape

__init__(copy: BulletHeightfieldShape) → None
__init__(image: PNMImage, max_height: float, up: BulletUpAxis) → None

Stores the image’s brightness values in a vector Bullet can use, while rotating it 90 degrees to the right.

__init__(tex: Texture, max_height: float, up: BulletUpAxis) → None

Alternative constructor intended for use with ShaderTerrainMesh. This will do bilinear sampling at the corners of all texels. Also works with textures that are non-power-of-two and/or rectangular.

static getClassType() → TypeHandle
Return type

TypeHandle

setUseDiamondSubdivision(flag: bool) → None