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

Refactor collision draw functions #87

Open
DoctorPresto opened this issue Nov 26, 2023 · 0 comments
Open

Refactor collision draw functions #87

DoctorPresto opened this issue Nov 26, 2023 · 0 comments

Comments

@DoctorPresto
Copy link
Contributor

Currently we have multiple separate functions drawing the same collision shapes.This means we currently have quite a bit of variation in how this is being done, what custom properties are being set etc... These should all eventually be combined into one function per shape that can be easily called from anywhere. Something like:
draw_boxcol(half_extents, physmat, type)
draw_convcol(vertices, physmat, type)
draw_capcol(radius, height, physmat, type)
draw_spherecol(radius, height, physmat, type)

If we keep the actual placement of the shapes in the world where it is and just do the basic drawing and applying of properties in these functions, it should be pretty simple to both standardize them, and account for the differences between import/generation and ents vs sectors vs .phys vs meshes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant