using UnityEngine;
using System.Collections;
public class ParticleSystemCollisionManager : MonoBehaviour {
void OnParticleCollision(GameObject other) {
// work on pc build, webplayer bu
我已经使用包含重力的Qt在C++中创建了一个粒子系统。我想包括一个边界框,以便系统也可以包含冲突,但是我似乎无法使其工作。这里是我的.h代码: typedef struct {
int top;
int bottom;
int left;
int right;
}BoundingBox;
BoundingBox makeBoundingBox(int
我有一个2D游戏。我有一些游戏物体,它们是由单数形状的碰撞体和一些由几种形状组成的游戏物体组成的,并且包含在一个空的游戏物体中,我已添加了角色碰撞物。所有游戏对象都添加了粒子系统,单个形状的游戏对象按预期工作并在碰撞时爆炸,多形状物体则不会。 当使用Play On Awake和Looping测试它们时,爆炸会按预期工作,但它们不会在碰撞时爆炸。我曾尝试将粒子系统放置在外部游戏对象内部的其中一个形状