Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 02:06:31 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)XPal: add a collideable to a body don´t update his position on first frame
Pages: [1]
Print
Author Topic: XPal: add a collideable to a body don´t update his position on first frame  (Read 755 times)
sisso
Just dropped in

Offline Offline

Posts: 21


View Profile
« on: 12. November 2007, 12:48:59 am »

Hi again Tongue

I think that this is a bug. If I create a body, a collideable and add a collisionCheck in the initialization (before RenderLoop.begin()) in the first frame all collideable start with a wrong position and all collideables collide.

If someone want I can send a exemple.

Thanks,
Sisso
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 12. November 2007, 02:19:06 am »

I think that this is a bug. If I create a body, a collideable and add a collisionCheck in the initialization (before RenderLoop.begin()) in the first frame all collideable start with a wrong position and all collideables collide.

I know about this bug. And when I have time, I will try to fix it. Or maybe we're lucky and Amos can have a look at it Smiley.

My current workaround for this is to call this right after the complete physics setup:
Code:
physEng.getSimulationEngine().step( 1L );

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic