22 #ifndef __ND_BODY_PARTICLE_SET_H__
23 #define __ND_BODY_PARTICLE_SET_H__
25 #include "ndNewtonStdafx.h"
37 void SetGravity(
const ndVector& gravity);
45 bool GetAsynUpdate()
const;
46 void SetAsynUpdate(
bool update);
47 ndFloat32 GetParticleRadius()
const;
48 void SetParticleRadius(ndFloat32 radius);
50 D_NEWTON_API
virtual void Update(
const ndWorld*
const workd, ndFloat32 timestep) = 0;
58 ndBodyList::ndNode* m_listNode;
60 bool m_updateInBackground;
62 } D_GCC_NEWTON_ALIGN_32 ;
69 inline ndFloat32 ndBodyParticleSet::GetParticleRadius()
const
74 inline void ndBodyParticleSet::SetParticleRadius(ndFloat32 raidus)
99 inline const ndVector ndBodyParticleSet::GetGravity()
const
104 inline void ndBodyParticleSet::SetGravity(
const ndVector& gravity)
106 m_gravity = gravity & ndVector::m_triplexMask;
109 inline bool ndBodyParticleSet::GetAsynUpdate()
const
111 return m_updateInBackground;
114 inline void ndBodyParticleSet::SetAsynUpdate(
bool updatType)
116 m_updateInBackground = updatType;