Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cylinder marker has a 2D colshape instead of 3D and Fix collision radius not matching visual #3436

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

Proxy-99
Copy link
Contributor

@Proxy-99 Proxy-99 commented Jun 7, 2024

Fixes #516 #331 #3435 #870
using tubes for both client and server
by trying to adjust the size to fit the visual and focuses on improving accuracy
this PR should improve isElementWithinMarker detect

@botder botder added backwards-incompatible Should be merged after the release of 1.6.1 bugfix Solution to a bug of any kind labels Jun 7, 2024
@tederis
Copy link
Member

tederis commented Jun 7, 2024

The spherical colshape requires a bit bigger radius than the circular one. Otherwise, there is a high chance of the miss in some of the edge conditions.

@tederis
Copy link
Member

tederis commented Jun 7, 2024

My opinion is that instead of this PR it's better to extend the circle colshape and add function setColCircleHeight (as it has already done for polygons).

@Proxy-99
Copy link
Contributor Author

Proxy-99 commented Jun 7, 2024

The spherical colshape requires a bit bigger radius than the circular one. Otherwise, there is a high chance of the miss in some of the edge conditions.

the problem will need types of col which can fit into the drawn shapes correctly

and the ColCircle has no height limit it goes to infinity

see
#3435

@tederis
Copy link
Member

tederis commented Jun 7, 2024

The spherical colshape requires a bit bigger radius than the circular one. Otherwise, there is a high chance of the miss in some of the edge conditions.

the problem will need types of col which can fit into the drawn shapes correctly of ring and arrow and cylinder

and the ColCircle has no height limit it goes to infinity

see #3435

Yeah, I see. But currently this PR is rather a temporary patch, not the comprehensive solution.

@Proxy-99
Copy link
Contributor Author

Proxy-99 commented Jun 10, 2024

@tederis I have used ColTube instead of of sphere, I did some math calculations to try to adjust the size
so far I think it's good with sizes like 300 and 500 it still not perfect
mta-screen_2024-06-10_22-23-26

@tederis
Copy link
Member

tederis commented Jun 11, 2024

@tederis I have used ColTube instead of of sphere, I did some math calculations to try to adjust the size so far I think it's good with sizes like 300 and 500 it still not perfect mta-screen_2024-06-10_22-23-26 mta-screen_2024-06-10_22-24-18

Looks pretty accurate. So maybe it's better to stick with tubes? Radiuses bigger than 100 are used rarely.

@Proxy-99
Copy link
Contributor Author

@Proxy-99 Proxy-99 changed the title Fix cylinder marker has a 2D colshape instead of 3D Fix cylinder marker has a 2D colshape instead of 3D and Fix collision radius not matching visual Jun 13, 2024
@tederis
Copy link
Member

tederis commented Jun 16, 2024

I don't think that a collision must 100% match the corresponding visual part. As was mentioned above collisions are a bit larger in SA. So you can simplify the formula.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backwards-incompatible Should be merged after the release of 1.6.1 bugfix Solution to a bug of any kind
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clientside cylinder marker has a 2D colshape instead of 3D
3 participants