![]() I just need to know the math to make this work. On the Layout tab of the Label style underneath the Border section, there is a setting for Background Mask. I am using this code to get the size of the collider, which seems to work fine. I know right now I am only using the Y coordinate. Civil 3D Labels: The last way in Civil 3D to add a mask to a label is through the Label Styles dialog box. Firstly, the boxcollider is attached as a child component of the line renderer. LazerCollider.size = new Vector3(lazerWidth, lineLength, 0) Highest resolution 3D printer with A2PL® technology for nanoprecise alignment. lazerCollider.offset = new Vector3(0, ourHitPos.y -, 0) / 2 I know I am supposed to get the midpoint, because that's how you control the location of the box collider, but I need to know the math to always make it align. This code is for aligning the collider with the line renderer. For more information, please see the VAST help page. Click the 'View 3D Alignment' button at the top of the report. ![]() Choose the structures you wish to align by checking the boxes to left of each structure. float lineLength = Vector3.Distance(lazer.GetPosition(1), lazer.GetPosition(0)) For VAST neighbors to an entire chain, click 'entire chain' for VAST neighbors for only one 3D domain, click the link for that 3D domain. But, when I am drawing a box collider, the box doesn't align at the correct position.įirstly, the boxcollider is attached as a child component of the line renderer. This works fine and the line is always shooting in the right direction and angle when I rotate the object. I am having the issue of aligning my BoxCollider2D with my linerenderer.
0 Comments
Leave a Reply. |