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

Add Continuous Collision Detection to Physical Bones #7882

Closed
eddieataberk opened this issue Sep 27, 2023 · 2 comments
Closed

Add Continuous Collision Detection to Physical Bones #7882

eddieataberk opened this issue Sep 27, 2023 · 2 comments

Comments

@eddieataberk
Copy link

Describe the project you are working on

A 3D game with physical animations

Describe the problem or limitation you are having in your project

Physical bones go through surfaces at high speeds. Currently, I'm working around that issue by creating a rig that utilizes RigidBody3D instead of Physical Bones just to use CCD.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Just like RigidBody3D add Continuous CD option to Physical Bones.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

image

If this enhancement will not be used often, can it be worked around with a few lines of script?

No.

Is there a reason why this should be core and not an add-on in the asset library?

This is about improving a built-in class

@eddieataberk
Copy link
Author

eddieataberk commented Sep 27, 2023

Found a workaround. Calling this code to Skeleton3D enables ccd for physical bones

	for child in get_children():
		if child is PhysicalBone3D:
			PhysicsServer3D.body_set_enable_continuous_collision_detection(child.get_rid(), true)	

@Calinou
Copy link
Member

Calinou commented Oct 4, 2023

Thanks for the proposal! Consolidating in #5291.

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

No branches or pull requests

2 participants