Announcement

Collapse
No announcement yet.

Major Object Stacking Physics/Collision Issue

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Major Object Stacking Physics/Collision Issue

    So I have N objects that are spawned into the level (via custom spawn manager BP) and are precisely stacked on top of each other with the help of SpawnActor. They are the same object (thin, cylindrical poker chip looking objects) and the individual meshes have collision and physics applied as well as a Physical Material. The first couple that are spawned, there is no issue with the stack, but after about 6 of these items gets stacked up, they start sinking into each other and the stack starts looking really flat and the items that get spawned start getting out of order on the stack (stackedObject03 might be on the bottom of the stack whereas stackedObject02 might be inside of stackedObject04). I have no clue as to what is causing this issue and it's killing my project. I need 20 of these objects to be stacked on top of each other for the requirements for this game and if I can't even get 6 to look good, there's an issue.

    Here's an image of what it should look like (5 spawned):
    Click image for larger version

Name:	items_stacked_01.JPG
Views:	1
Size:	38.2 KB
ID:	1204430

    It's a nice evenly stack of chips. It should continue this pattern of stacking for the 20 stack as well.

    I have another object that is hovering over this stack of chips that slams down on top of the stack and should make these chips flip over (negative impulse that equates to no more than -2500 added impulse). Only problem is that more often then not with a higher negative impulse amount this object ends up in the middle of the stack. The stack gets squished down even more than it was before and this thing inches it's way to the middle of the stack until the object slows down. but with not enough negative impulse, the object doesn't provide enough power to flip it over at all.

    The hovering object and also the ground each have a physical material applied. Each of these settings can be seen in the table below.

    Physical Material Table
    Chip Object Hover Object Concrete Ground
    Click image for larger version

Name:	chip_PM.JPG
Views:	1
Size:	38.4 KB
ID:	1204432 Click image for larger version

Name:	hover_PM.JPG
Views:	1
Size:	35.0 KB
ID:	1204433 Click image for larger version

Name:	cement_PM.JPG
Views:	1
Size:	37.5 KB
ID:	1204431
    Here's also the physics and collision settings for the stacked object and hover object.

    Chip Properties
    Physics Collision
    Click image for larger version

Name:	chip_physics.JPG
Views:	1
Size:	39.5 KB
ID:	1204434 Click image for larger version

Name:	chip_collision.JPG
Views:	1
Size:	41.0 KB
ID:	1204435
    Hover Object Properties
    Physics Collision
    Click image for larger version

Name:	hover_physics.JPG
Views:	1
Size:	41.6 KB
ID:	1204436 Click image for larger version

Name:	hover_collision.JPG
Views:	1
Size:	40.6 KB
ID:	1204437
    *Notes* The reason why I set the hover object to such a heavy weight is because if not, it won't flip anything over at all. Anything too light it will just land on top of the stack.

    If anybody can help with this, I'd be very grateful! Thank you for your time.
    Last edited by Element808; 12-23-2016, 02:06 AM.

    #2
    Forgot to add what the 20 stack looks like....

    Click image for larger version

Name:	20Stack.JPG
Views:	1
Size:	43.9 KB
ID:	1120461

    Comment


      #3
      I just noticed this apparent bug playing around with my physics bodies in the project.

      The first issue is that my stack-able chips are falling through each other during gameplay when stacked as shown above - obviously this shouldn't happen.

      The second issue occurring is when I detach from player controller and right-click, move the mouse, or move the camera all the physics bodies that are in the scene bounce. You'll notice when the cross-hairs disappear, I'm right-clicking. When this happens, the whole stack of physics bodies starts to compact and when I release they bounce up.

      I've uploaded a video to YouTube to show a visual.

      Comment

      Working...
      X