Skip to content

Commit

Permalink
feat: adding constructor params to PhysicalBehavior
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtome committed Aug 13, 2024
1 parent 0727257 commit f0c42b4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import 'package:leap/leap.dart';

/// Base class for behaviors on [PhysicalEntity].
abstract class PhysicalBehavior<T extends PhysicalEntity> extends Behavior<T> {
PhysicalBehavior({
super.children,
super.priority,
super.key,
});

CollisionInfo get collisionInfo => parent.collisionInfo;
CollisionInfo get prevCollisionInfo => parent.prevCollisionInfo;

Expand Down

0 comments on commit f0c42b4

Please sign in to comment.