By Lawrence
5 minutes
5 minutes
A Plant That Takes Them
The rocks bend past the hole and fly off the top of the field. Nothing is there to receive them.
A sphere, and a tag
A capture zone is a sphere test: a point p is inside when |p − c| ≤ r. Our plant sits at [27, 0, 7] with a radius of 2.5:
Which bodies count is decided by a tag, not by a component. The zone takes anything tagged rock, a GravityBody rock or a physics ball alike.
Continue reading
Unlock the Full Course
Every lesson, the runnable examples, and the finished build — yours to keep.
$9one-time
=