class BulletHeightfieldShape

Bases: BulletShape

Inheritance diagram

Inheritance diagram of BulletHeightfieldShape

explicit BulletHeightfieldShape(PNMImage const &image, PN_stdfloat max_height, BulletUpAxis up = ::Z_up)
explicit BulletHeightfieldShape(Texture *tex, PN_stdfloat max_height, BulletUpAxis up = ::Z_up)
BulletHeightfieldShape(BulletHeightfieldShape const &copy)

Only used by make_from_bam

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

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 TypeHandle get_class_type(void)
void set_use_diamond_subdivision(bool flag = true)