The Spawner will emit objects when executed based on it's parameters. The Spawner can use Objects, reference objects or Reusable containers as Spawned Objects.
If the Spawned Object is set as a Reference Object , then it will emit a duplicated instance.
The component has a direction in which the emitted object will be "shot". Depending on the settings this direction will either be determined by the orientation of the Spawner Node or the orientation of the Spawn From Object.
Object To Spawn | The object that will be spawned from, the Spawner. You can drag from the arrow to select an object in the Editor or use the Set button. Set - Tap the Set button to select the Object to Spawn from a dropdown list of all Reusables in the Hype project. |
Spawn At | The object from which the Object to Spawn will be emitted. Drag from the arrow to select an object in the Editor. If no object is selected the Object to Spawn will be emitted from the Spawner Node. |
Shoot Towards | The target object the spawned object is aimed towards. If nothing is selected the Object to Spawn will be emitted in the direction of the arrow visualization that appears when the Spawner Node is selected. |
Execute | Executes the Node |
On Start | Executes the Node at the start of the Hype. |
Enabled | Determines if the Node is executable. |
Use Spawner Local Transform | Uses local transform of the Spawn At object to determine the spawn direction. |
Require Shoot Target | Only executes the component when it is allowed to spawn the object towards the Targeted Object. |
Use Spawn Point Rotation | Rotates the emitted object based on the Spawn At target’s rotation. |
Offset As Absolute Transform | Determines if Offset X / Y / Z should be used as an absolute transform instead of a local offset. |
Use Vector Input | Uses Vector as a spawn location |
Offset X / Y / Z | Offset for the start position for the spawned object. |
Shoot Force | The speed value the object is spawned at. |
Max Target Distance | Allows the component to only emit the object when the distance between the Spawn From Object target and the Targeted Object object is under this value. |
Look At Vector X / Y / Z |
Uses Vector position as a Shoot Towards target |
On Object Created | Outputs a reference to the spawned object when the object is created. |
Creating a Spawner Executed by Collision Trigger
Includes using Collision Trigger & Spawner
Here's a link to the hype that shows how to implement and use the Spawner node:
https://hypehype.com/r/ZFJD6SwL0U9JDg