We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Collision/Interaction of objects via limit distance

Home Forums General Questions Collision/Interaction of objects via limit distance

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #10567
    brownie
    Participant

    Hi,

    While I keep on learning Verge3d and developing my configurator, I try to find a solution to avoid the overlapping of my furnitures in the scene.

    I’ve already read a post where it’s said that it’s currently possible only by programming, but I wanted to be sure that the Limit distance constraint in Blender actually can’t make it.

    Otherwise, it would surely deserved to be a feature request for anyone dealing with several items.

    Thank you and congrats for your work on this great program.

    #10570

    I’ve already read a post where it’s said that it’s currently possible only by programming, but I wanted to be sure that the Limit distance constraint in Blender actually can’t make it.

    A Limit Constrain only limits the movement the object in the scene but it will not limit one object by another. To avoid interacton between two objects you can use Get Distance puzzle and when distance are to close just stop moving the object, but this solution is very inaccurate and will not respect the shape of the mesh.

    Co-founder and lead graphics specialist at Soft8Soft.

    #68209
    c4cc
    Participant

    I know this is old, but do you have the puzzles for this?

    A Limit Constrain only limits the movement the object in the scene but it will not limit one object by another. To avoid interacton between two objects you can use Get Distance puzzle and when distance are to close just stop moving the object, but this solution is very inaccurate and will not respect the shape of the mesh.

    #68223
    bigmike814
    Customer

    It depends on what you’re trying to do. There is a constraint puzzle in the animation tab. Also, you can use position and then calculate the math to set a better parameter.

    C4cc, what exactly are you looking to accomplish?

    #68224
    c4cc
    Participant

    C4cc, what exactly are you looking to accomplish?

    3 things, actually. Without using physics puzzles.

    1) I need to prevent a character model from passing/going through other character models, and level objects like floors and walls.

    2) I need to calculate damage taken and caused by shots

    3) I need to prevent shots being fired in the opposite direction, when the fire key is pressed at the wrong time of my character turning around

    • This reply was modified 3 months, 3 weeks ago by c4cc.
    • This reply was modified 3 months, 3 weeks ago by c4cc.
    #68227
    bigmike814
    Customer

    Why cant you use the physics puzzle?

    for number two, I’d check the arcade racing demo, they do the something similar.

    can you use a delay timer for number 3?

    All of the solutions can be solved with physics.

    #68231
    c4cc
    Participant

    Physics forces all objects to drop, and some of my models are flying/hovering. I also prefer some of my models to jump and land onto certain objects sometimes

    • This reply was modified 3 months, 3 weeks ago by c4cc.
    • This reply was modified 3 months, 3 weeks ago by c4cc.
    #68238
    kdv
    Participant

    Physics forces all objects to drop, and some of my models are flying/hovering.

    What’s the problem to apply a force opposite to the gravity force? F=mg

    The physics module is quite easy to use. The only serious limitation concerns scales: all physics objects should have their scale set to 1 along all axes.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #68239
    c4cc
    Participant

    Ok, I’ll try to use physics puzzles for now. I’m just not sure how to use it.

    Also, I was just wondering if there was an easier alternative involving object puzzles, by preventing certain objects from entering the distance around certain other objects.

    #68240
    kdv
    Participant

    “Limit min distance” constraint.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #68242
    c4cc
    Participant

    I tried for blender, but sadly, It prevented my character from moving away as far as I wanted it to.

    #68243
    kdv
    Participant

    You limited max instead of min.
    Inside – max allowed distance
    Outside – min allows distance
    On surface – constant distance.

    Also you are free to use this puzzle to set constraints.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #68246
    c4cc
    Participant

    You limited max instead of min.
    Inside – max allowed distance
    Outside – min allows distance
    On surface – constant distance.

    Also you are free to use this puzzle to set constraints.

    While these restraints indeed initially prevents characters from moving in a certain area, it causes characters to “roll” around said area’s origins when dragged.

    I need a way to prevent certain characters from moving through objects

    • This reply was modified 3 months, 3 weeks ago by c4cc.
    #68248
    kdv
    Participant

    Well, you may try to find an alternative to physics or constraints. For now it doesn’t exist in Verge3D and most likely you’ll have to create it on your own :unsure:

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #68249
    c4cc
    Participant

    What’s the problem to apply a force opposite to the gravity force? F=mg

    The physics module is quite easy to use. The only serious limitation concerns scales: all physics objects should have their scale set to 1 along all axes.

    I tried to use physics, but no prevention of objects going through other objects :scratch:

    original-drawn-by-nanashinayuzu-mochi-53d2788a0d5e217f8b28d256c728bf04

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.