Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mupp on August 25, 2021, 04:39:15 PM

Title: How do you use box/sphere cast properly?
Post by: Mupp on August 25, 2021, 04:39:15 PM
I want to cast a box and a sphere at 0 distance from its object and only use the radius from the shape so it covers the object at equal distance in all directions. But if I set distance to 0 no ray is cast at all.
Also the debug lines for these 2 casts are not helpful at all. It's just some weird lines that doesn't show where the shape of ray actually is.

What should I do?
Title: Re: How do you use box/sphere cast properly?
Post by: hoyoyo80 on August 27, 2021, 09:38:03 AM
+1, i remember asking the same question with no reply. Hope u and me can get the solution. Last time i intend to use this as ground check for jumping but have to change to trigger to check the ground
Title: Re: How do you use box/sphere cast properly?
Post by: djaydino on August 28, 2021, 09:31:43 AM
Hi.
Distance 0 will indeed not work

what i do is set size x or y to 0.001 (depending on direction)
and then set distance to what i need (greater than 0)

The debug lines seem to work for me as long as a distance is used.

for sphere cast it will probably work the same way
Title: Re: How do you use box/sphere cast properly?
Post by: Mupp on August 28, 2021, 11:41:25 AM
Yes the debug lines work, what I'm talking about are the lines for the shape itself.