-
-
Notifications
You must be signed in to change notification settings - Fork 486
Add functions to manipulate colshapes parameters #1215
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
Conversation
you should also add heigth for polygons, #226 |
Should I leave one |
I think setColShapeSize is alright, having to many functions just to change the size of the colshape would be confusing/annoying tbh. If the function adapts to the type of colshape it's changing that's all we need i think |
614eec4
to
1dcac37
Compare
1dcac37
to
3dbdd65
Compare
I'm not sure if I should use the sync time context here or not. |
The code looks good to me.
I'm not sure either. Let's figure it out together. I found this (introduced in initial commit): // This is used for realtime synced elements. Whenever a position/rotation change is
// forced from the server either in form of spawn or setElementPosition/rotation a new
// value is assigned to this from the server. This value also comes with the sync packets.
// If this value doesn't match the value from the sync packet, the packet should be
// ignored. Note that if this value is 0, all sync packets should be accepted. This is
// so we don't need this byte when the element is created first. Markers don't use a sync time context, so I'd guess that colshapes wouldn't need them either. What do you think? |
have you tested the latest version? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm overall happy with this and can merge once comments have been addressed.
I don't have time to test, but I'm confident in your work, so I'll merge once you've confirmed you've tested the latest version
6c8f89d
to
a8349a9
Compare
This reverts commit a8349a9. Annoying and it looks disgusting, yes, but it's unfortunately what clang-format wants :/
These functions also allow you to edit colshapes of markers and pickups. Should I leave this opportunity? Everything tested. Works good. |
That's funky. Let's leave it in! |
@StrixG the point index should be unsigned int.. why would you use int? This adds new warnings to our list |
I use -1 as default value to add a point to the end of the list. I should have used static_cast on line 80. |
Tube (height)
Rectangle (width, height)
Cuboid (width, depth, height)