Home › Forums › General Questions › Collision/Interaction of objects via limit distance
- This topic has 15 replies, 5 voices, and was last updated 1 year, 1 month ago by kdv.
-
AuthorPosts
-
2019-01-14 at 3:11 pm #10567brownieParticipant
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.
2019-01-14 at 3:39 pm #10570Mikhail LuzyaninStaffI’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.
2023-11-05 at 3:17 am #68209c4ccParticipantI 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.
2023-11-06 at 1:13 am #68223bigmike814CustomerIt 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?
2023-11-06 at 2:24 am #68224c4ccParticipantC4cc, 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
2023-11-06 at 3:58 am #68227bigmike814CustomerWhy 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.
2023-11-06 at 7:01 am #68231c4ccParticipant2023-11-06 at 3:58 pm #68238kdvParticipantPhysics 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 coding. 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 the meaning at all.
2023-11-06 at 5:47 pm #68239c4ccParticipantOk, 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.
2023-11-06 at 5:56 pm #68240kdvParticipant“Limit min distance” constraint.
Puzzles and JS coding. 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 the meaning at all.
2023-11-06 at 6:44 pm #68242c4ccParticipantI tried for blender, but sadly, It prevented my character from moving away as far as I wanted it to.
2023-11-06 at 6:54 pm #68243kdvParticipantYou limited
max
instead ofmin
.
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 coding. 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 the meaning at all.
2023-11-07 at 3:26 am #68246c4ccParticipantYou limited
max
instead ofmin
.
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 1 year, 1 month ago by c4cc.
2023-11-07 at 3:53 am #68248kdvParticipantWell, 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
Puzzles and JS coding. 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 the meaning at all.
2023-11-07 at 4:40 am #68249c4ccParticipantWhat’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
-
AuthorPosts
- You must be logged in to reply to this topic.