NL3D::CPSHintParticleRotateTheSame Struct Reference

#include <ps_particle_basic.h>

Inheritance diagram for NL3D::CPSHintParticleRotateTheSame:

NL3D::CPSConstraintMesh NL3D::CPSFace

Detailed Description

This add a hint to rotated particle : only a few one are rotated, and the other are duplcated

Definition at line 721 of file ps_particle_basic.h.

Public Member Functions

virtual uint32 checkHintRotateTheSame (float &minAngularVelocity, float &maxAngularVelocity) const=0
virtual void disableHintRotateTheSame (void)=0
virtual void hintRotateTheSame (uint32 nbConfiguration, float minAngularVelocity=NLMISC::Pi, float maxAngularVelocity=NLMISC::Pi)=0


Member Function Documentation

virtual uint32 NL3D::CPSHintParticleRotateTheSame::checkHintRotateTheSame float &  minAngularVelocity,
float &  maxAngularVelocity
const [pure virtual]
 

check wether a call to hintRotateTheSame was performed

Returns:
0 if the hint is disabled, the number of configurations else
See also:
hintRotateTheSame(), CPSRotated3dPlaneParticle

Implemented in NL3D::CPSFace, and NL3D::CPSConstraintMesh.

virtual void NL3D::CPSHintParticleRotateTheSame::disableHintRotateTheSame void   )  [pure virtual]
 

disable the hint 'hintRotateTheSame' The previous set scheme for roation is used

See also:
hintRotateTheSame(), CPSRotated3dPlaneParticle

Implemented in NL3D::CPSFace, and NL3D::CPSConstraintMesh.

virtual void NL3D::CPSHintParticleRotateTheSame::hintRotateTheSame uint32  nbConfiguration,
float  minAngularVelocity = NLMISC::Pi,
float  maxAngularVelocity = NLMISC::Pi
[pure virtual]
 

Tells that all particles are turning in the same manner, and only have a rotationnal bias This is faster then other method. Any previous set scheme for 3d rotation is kept.

Parameters:
 the number of rotation configuration we have. The more high it is, the slower it'll be If this is too low, a lot of particles will have the same orientation If it is 0, then the hint is disabled
minAngularVelocity : the maximum angular velocity for particle rotation
maxAngularVelocity : the maximum angular velocity for particle rotation
See also:
CPSRotated3dPlaneParticle

Implemented in NL3D::CPSFace, and NL3D::CPSConstraintMesh.


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 07:15:23 2004 for NeL by doxygen 1.3.6