Live2D  Version 2.0
Live2D rendering engine API reference
 All Classes Namespaces Functions
PhysicsHair Class Reference

#include <PhysicsHair.h>

Inheritance diagram for PhysicsHair:
LDObject

Public Types

enum  Src { SRC_TO_X = 0, SRC_TO_Y, SRC_TO_G_ANGLE }
 
enum  Target { TARGET_FROM_ANGLE = 0, TARGET_FROM_ANGLE_V }
 

Public Member Functions

 PhysicsHair ()
 Constructor. More...
 
 PhysicsHair (float baseLengthM, float airRegistance, float mass)
 
virtual ~PhysicsHair ()
 Destructor. More...
 
void setup (float baseLengthM, float airRegistance, float mass)
 
void setup ()
 
void addSrcParam (PhysicsHair::Src srcType, const char *paramID, float scale, float weight)
 
void addTargetParam (PhysicsHair::Target targetType, const char *paramID, float scale, float weight)
 
void update (live2d::ALive2DModel *model, long long time)
 
PhysicsPoint & getPhysicsPoint1 ()
 
PhysicsPoint & getPhysicsPoint2 ()
 
float getGravityAngleDeg ()
 
void setGravityAngleDeg (float angleDeg)
 
float getAngleP1toP2Deg ()
 
float getAngleP1toP2Deg_velocity ()
 

Additional Inherited Members

- Static Public Member Functions inherited from LDObject
static void * operator new (l2d_size_t size)
 
static void operator delete (void *ptr)
 
static void * operator new[] (l2d_size_t size)
 
static void operator delete[] (void *ptr)
 
static void * operator new (l2d_size_t size, void *ptr)
 
static void operator delete (void *ptr, void *ptr2)
 
static void * operator new (l2d_size_t size, MemoryParam *memParam)
 
static void operator delete (void *ptr, MemoryParam *memParam)
 
static void * operator new (l2d_size_t size, MemoryParam *memParam, const char *filename, int line)
 
static void operator delete (void *ptr, MemoryParam *memParam, const char *filename, int line)
 
- Static Public Attributes inherited from LDObject
static int object_instanceCount = 0
 
static int object_totalCount = 0
 

Detailed Description


Constructor & Destructor Documentation

Constructor.


Date
2013/05/21
PhysicsHair ( float  _baseLengthM,
float  _airRegistance,
float  _mass 
)

~PhysicsHair ( )
virtual

Destructor.


Date
2013/05/21

Member Function Documentation

void addSrcParam ( PhysicsHair::Src  srcType,
const char *  paramID,
float  scale,
float  weight 
)

void addTargetParam ( PhysicsHair::Target  targetType,
const char *  paramID,
float  scale,
float  weight 
)

void setup ( float  _baseLengthM,
float  _airRegistance,
float  _mass 
)

void setup ( )

void update ( live2d::ALive2DModel model,
long long  time 
)


The documentation for this class was generated from the following files: