Yea, I found that in the tool box long ago and had to doctor it up a bit to work right.
If you move anything itâs broken. It needs some love for sure⌠Iâm not using it other than to study how itâs working.
I could not find the original one to post a link.
Also there are so many in there, one of them has to be doing that the way youâre attempting.
Show us the script that controls the Servo of the HInge. Put 3 backticks (```) before and after you copy/paste it here so it formats properly.
Are any parts of the door anchored?
Do you have a weld between something in the door and an anchored Part. You can see welds in the workspace if you go to the Model tab, Constraints, View welds tool.
Whatâs the ServoMaxTorque value of the hinge?
Is the Hinge active? View it with hte Model tab, Constraints, View constraints tool. Select the HingeConstraint and see if 2 Parts have green outlines. If not your Attachment0 and Attachment1 properties arenât set.
Select Attachment0 in the HingeConstraint Properties and then select DoorAtt. do the same with the Attachment1 Property and the FrameAtt.
Are any of the door Parts colliding with any Parts in the workspace? Go to Studio settings, Physics, and check the Are Contact Points Shown checkbox. Itâll highlight where moving parts are contacting each other.
The frame part inside of the Main Door Part is anchored but it doesnt make a difference because it works for the other doors as well
I just went through all of these and I figured out the problem.
I am using CollectionService to organise all of the doors and I forgot to add a tag to the bank vault so thats my fault lol.
I appreciate that you typed out all of this and I am also sorry. I also appreciate all of the other replies as I learnt more about Moter6Dâs due to @2112Jay.
So yeah, thanks again and sorry for the misunderstanding
Iâm guessing the hole is a Union?
Unions donât always have the same physical shape as their visual shape. Your door may be hitting the Union. Try changing the CollisionFidelity Property of the Union to PreciseConvexDecompostion
to see if that helps.
There are 2 ways to check if the 2 parts are contacting each other:
There is a Studio setting in the Physics tab that has a checkbox for ShowDecompositionGeometry (thereâs a plugin that makes this easier). You can check it to see what your Unions and Meshes look like physically compared to visually. You may have to change a property in the Union for a second to show it though. It could show that the Union doesnât have a perfect hole in it.
Use the Are Contact Points Shown tool in the Studio settings I mentioned above. Red spheres will show the contact point between parts when they collide while testing. I have it on all the time since I do a lot of work with Constraints.
I guess its something to do with the HingeConstraint right? Because when I anchor it, it doesnt move weirdly. Should I weld it or will that interfere with the HingeConstraint?
You can also use Collision groups for that.
Put them both the door and Union in the same Collision group (letâs say itâs called doors) and set doors to collide with Default, but not collide with doors.
If you do that and have issues with other Parts colliding you can just add those Parts into doors as well.
Collision Filtering is your friend. When you set up Collision Groups they collide with everything in the workspace (the Default setting).
Make a second group for doors and their walls. Have all the other checkboxes on, but where the group is uncheck the box where it reacts with itself.
Select all the Parts you donât want to collide with each other then click the + sign to add them to the group.