Skip to content
shalliwell edited this page May 25, 2020 · 1 revision

Physics commands

Cast

Find all gameobjects hit by given physics shape cast

Defined in Fungus.PhysicsCast

Property Type Description
Position1 Fungus.Vector3Data Starting point/origin or centre of shape
Direction Fungus.Vector3Data
Max Distance Fungus.FloatData
Capsule Position2 Fungus.Vector3Data CAPSULE ONLY; end point of the capsule
Radius Fungus.FloatData CAPSULE & SPHERE ONLY
Box Half Extends Fungus.Vector3Data BOX ONLY
Box Orientation Fungus.QuaternionData BOX ONLY
Layer Mask UnityEngine.LayerMask
Query Trigger Interaction UnityEngine.QueryTriggerInteraction

Overlap

Find all gameobjects hit by given physics shape overlap

Defined in Fungus.PhysicsOverlap

Property Type Description
Shape Fungus.PhysicsOverlap+Shape
Position1 Fungus.Vector3Data Starting point or centre of shape
Capsule Position2 Fungus.Vector3Data CAPSULE ONLY; end point of the capsule
Radius Fungus.FloatData CAPSULE & SPHERE ONLY
Box Half Extends Fungus.Vector3Data BOX ONLY
Box Orientation Fungus.QuaternionData BOX ONLY
Layer Mask UnityEngine.LayerMask
Query Trigger Interaction UnityEngine.QueryTriggerInteraction

Auto-Generated by Fungus.ExportReferenceDocs

Clone this wiki locally