Make ball move when shot again
This commit is contained in:
parent
4b00adfc77
commit
a6c346ddb9
@ -35,7 +35,7 @@ pub fn cast_ray(
|
|||||||
) -> Option<RaycastResult> {
|
) -> Option<RaycastResult> {
|
||||||
let ray = PhysicsRayQueryParameters3D::create(from, to);
|
let ray = PhysicsRayQueryParameters3D::create(from, to);
|
||||||
if let Some(mut ray) = ray {
|
if let Some(mut ray) = ray {
|
||||||
ray.set_collision_mask(0b111);
|
ray.set_collision_mask(0b1111);
|
||||||
ray.set_hit_back_faces(false);
|
ray.set_hit_back_faces(false);
|
||||||
ray.set_hit_from_inside(false);
|
ray.set_hit_from_inside(false);
|
||||||
ray.set_collide_with_bodies(true);
|
ray.set_collide_with_bodies(true);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user