historical/toontown-classic.git/panda/include/bulletSoftBodyWorldInfo.h

64 lines
1.6 KiB
C
Raw Normal View History

2024-01-16 11:20:27 -06:00
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file bulletSoftBodyWorldInfo.h
* @author enn0x
* @date 2010-03-04
*/
#ifndef __BULLET_SOFT_BODY_WORLD_INFO_H__
#define __BULLET_SOFT_BODY_WORLD_INFO_H__
#include "pandabase.h"
#include "bullet_includes.h"
#include "bullet_utils.h"
#include "luse.h"
/**
*
*/
class EXPCL_PANDABULLET BulletSoftBodyWorldInfo {
PUBLISHED:
INLINE ~BulletSoftBodyWorldInfo();
void set_air_density(PN_stdfloat density);
void set_water_density(PN_stdfloat density);
void set_water_offset(PN_stdfloat offset);
void set_water_normal(const LVector3 &normal);
void set_gravity(const LVector3 &gravity);
PN_stdfloat get_air_density() const;
PN_stdfloat get_water_density() const;
PN_stdfloat get_water_offset() const;
LVector3 get_water_normal() const;
LVector3 get_gravity() const;
void garbage_collect(int lifetime=256);
MAKE_PROPERTY(air_density, get_air_density, set_air_density);
MAKE_PROPERTY(water_density, get_water_density, set_water_density);
MAKE_PROPERTY(water_offset, get_water_offset, set_water_offset);
MAKE_PROPERTY(water_normal, get_water_normal, set_water_normal);
MAKE_PROPERTY(gravity, get_gravity, set_gravity);
public:
BulletSoftBodyWorldInfo(btSoftBodyWorldInfo &_info);
INLINE btSoftBodyWorldInfo &get_info() const;
private:
btSoftBodyWorldInfo &_info;
};
#include "bulletSoftBodyWorldInfo.I"
#endif // __BULLET_SOFT_BODY_WORLD_INFO_H__