Hi,
I've got a problem where when creating and positioning a new object,the object falls through the floor.
I have been playing with the location that the new object and it appears that if the object is created entirely outside of the bounding box of the floor.
I've tried setting allowSleep to false, setBullet to true. These have no effect on what happens.
Here's an example: http://www.youtube.com/watch?v=0-r0-qdezvY
In the above demo, if I set the position when crouching to 100 above the floor this doesn't happen.
When the player crouches, his object is replaced with a shorter object. As you can see the new object is created inside of the bounding box of the slightly angled floor (ignore the floor graphics. They're wrong., the box is the physics object). This is obviously not a problem when the floor is flat, because the bounding box is the same as the shape, and thus the new shape is always created outside of it.
Why does the object not collide if their bounding boxes initially intersect?
I've got a problem where when creating and positioning a new object,the object falls through the floor.
I have been playing with the location that the new object and it appears that if the object is created entirely outside of the bounding box of the floor.
I've tried setting allowSleep to false, setBullet to true. These have no effect on what happens.
Here's an example: http://www.youtube.com/watch?v=0-r0-qdezvY
In the above demo, if I set the position when crouching to 100 above the floor this doesn't happen.
When the player crouches, his object is replaced with a shorter object. As you can see the new object is created inside of the bounding box of the slightly angled floor (ignore the floor graphics. They're wrong., the box is the physics object). This is obviously not a problem when the floor is flat, because the bounding box is the same as the shape, and thus the new shape is always created outside of it.
Why does the object not collide if their bounding boxes initially intersect?