Page MenuHomeFeedback Tracker

Physics simulation on custom geometries stop after some time
New, UrgentPublic

Description

If you create custom geometry like that

dBodyDestroy( this );	
			
vector m_MinMax[2];
vector m_Size;
			
this.GetCollisionBox(m_MinMax);
			
m_Size[0] = m_MinMax[1][0] - m_MinMax[0][0];
m_Size[2] = m_MinMax[1][2] - m_MinMax[0][2];
m_Size[1] = m_MinMax[1][1] - m_MinMax[0][1];
			
autoptr PhysicsGeomDef geoms[] = {PhysicsGeomDef("", dGeomCreateBox(m_Size), "material/default", 0xffffffff)};
dBodyCreateDynamicEx( this, "0 0 0", 1, geoms );

Then physics simulation will stop on it after some time (10-15 seconds)

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Execute this code inside the constructor of an object

dBodyDestroy( this );	
			
vector m_MinMax[2];
vector m_Size;
			
this.GetCollisionBox(m_MinMax);
			
m_Size[0] = m_MinMax[1][0] - m_MinMax[0][0];
m_Size[2] = m_MinMax[1][2] - m_MinMax[0][2];
m_Size[1] = m_MinMax[1][1] - m_MinMax[0][1];
			
autoptr PhysicsGeomDef geoms[] = {PhysicsGeomDef("", dGeomCreateBox(m_Size), "material/default", 0xffffffff)};
dBodyCreateDynamicEx( this, "0 0 0", 1, geoms );
Additional Information

The simulation of the object still executing its just about physics of this object, i also constantly do SetVelocity on the object so it should not stop but it does stop

Event Timeline

Unknown Object (User) created this task.Apr 5 2019, 7:18 PM
NiiRoZz added a subscriber: NiiRoZz.Apr 5 2019, 9:50 PM