You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
741 B

using UnityEngine;
namespace UnityEditor.VFX.Block
{
class CollisionAABoxDeprecatedV2 : CollisionBase
{
public override string name { get { return "Collide with AABox"; } }
public class InputProperties
{
[Tooltip("Sets the bounding box with which particles can collide.")]
public AABox box = new AABox() { size = Vector3.one };
}
public override void Sanitize(int version)
{
var newCollisionShape = ScriptableObject.CreateInstance<CollisionShape>();
SanitizeHelper.MigrateBlockCollisionShapeToComposed(newCollisionShape, this, CollisionShapeBase.Type.OrientedBox);
ReplaceModel(newCollisionShape, this);
}
}
}