BulletHeightfieldShape

from panda3d.bullet import BulletHeightfieldShape
class BulletHeightfieldShape

Bases:

Bases: BulletShape

Inheritance diagram

Inheritance diagram of BulletHeightfieldShape

__init__(copy: BulletHeightfieldShape)
__init__(image: panda3d.core.PNMImage, max_height: float, up: BulletUpAxis)

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

__init__(tex: panda3d.core.Texture, max_height: float, up: BulletUpAxis)

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 get_class_type() panda3d.core.TypeHandle
set_use_diamond_subdivision(flag: bool)