|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CPSGravity Class Referencea gravity class. Mass isn't taken in account (true with a uniform gravity model, near earth ).
More...
#include <ps_force.h>
Inheritance diagram for NL3D::CPSGravity:
List of all members.
Public Methods |
virtual void | performDynamic (TAnimationTime ellapsedTime) |
| Compute the force on the targets. More...
|
virtual void | show (TAnimationTime ellapsedTime) |
| Show the force (edition mode). More...
|
| CPSGravity (float g=9.8f) |
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
| serialization. More...
|
| NLMISC_DECLARE_CLASS (CPSGravity) |
virtual bool | isIntegrable (void) const |
| check wether this force is integrable over time. The default is false. More...
|
virtual void | integrate (float date, CPSLocated *src, uint32 startIndex, uint32 numObjects, NLMISC::CVector *destPos=NULL, NLMISC::CVector *destSpeed=NULL, bool accumulate=false, uint posStride=sizeof(NLMISC::CVector), uint speedStride=sizeof(NLMISC::CVector)) |
| inherited from CPSForce. More...
|
virtual void | integrateSingle (float startDate, float deltaT, uint numStep, CPSLocated *src, uint32 indexInLocated, NLMISC::CVector *destPos, bool accumulate=false, uint posStride=sizeof(NLMISC::CVector)) |
| Compute a trajectory on several steps for a single object, rather than a step for several object. More...
|
Protected Methods |
virtual void | setIntensity (float value) |
| inherited from CPSForceIntensityHelper. More...
|
virtual void | setIntensityScheme (CPSAttribMaker< float > *scheme) |
| inherited from CPSForceIntensityHelper. More...
|
Detailed Description
a gravity class. Mass isn't taken in account (true with a uniform gravity model, near earth ).
Definition at line 394 of file ps_force.h.
Constructor & Destructor Documentation
NL3D::CPSGravity::CPSGravity |
( |
float |
g = 9.8f |
) |
[inline] |
|
Member Function Documentation
|
Compute a trajectory on several steps for a single object, rather than a step for several object.
If the start date is lower than the creation date, the initial position is used NB : works only with integrable forces
Reimplemented from NL3D::CPSForce.
Definition at line 599 of file ps_force.cpp.
References NL3D::CPSForceIntensity::_K, NL3D::FillBufUsingSubdiv, nlassert, NL3D::ScaleFloatGE, src, stride, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z. |
bool NL3D::CPSGravity::isIntegrable |
( |
void |
|
) |
const [virtual] |
|
NL3D::CPSGravity::NLMISC_DECLARE_CLASS |
( |
CPSGravity |
|
) |
|
|
void NL3D::CPSGravity::performDynamic |
( |
TAnimationTime |
ellapsedTime |
) |
[virtual] |
|
void NL3D::CPSGravity::setIntensity |
( |
float |
value |
) |
[protected, virtual] |
|
void NL3D::CPSGravity::setIntensityScheme |
( |
CPSAttribMaker< float > * |
scheme |
) |
[protected, virtual] |
|
The documentation for this class was generated from the following files:
|
|