Moderators: Sascha Willems, walaber
JernejL wrote:If you mean the listener functions there is no pre-forcetorque callback function, i cannot find that.
DemoListenerBase::DemoListenerBase(DemoEntityManager* const scene, const char* const listenerName)
{
NewtonWorld* const world = scene->GetNewton();
void* const listener = NewtonWorldAddListener (world, listenerName, this);
NewtonWorldListenerSetDestructorCallback (world, listener, Destroy);
NewtonWorldListenerSetPreUpdateCallback (world, listener, PreUpdate);
NewtonWorldListenerSetPostUpdateCallback (world, listener, PostUpdate);
NewtonWorldListenerSetBodyDestroyCallback (world, listener, OnBodyDestroy);
}
DG_INLINE dgBigVector(dgInt32 ix, dgInt32 iy, dgInt32 iz, dgInt32 iw)
{
dgInt64 x = ix;
dgInt64 y = iy;
dgInt64 z = iz;
dgInt64 w = iw;
m_typeLow = _mm_set_pd(*(dgFloat32*)&y, *(dgFloat32*)&x);
m_typeHigh = _mm_set_pd(*(dgFloat32*)&w, *(dgFloat32*)&z);
}
Users browsing this forum: No registered users and 0 guests