import { Component, ContextManager, Event } from '@zcomponent/core'; import { IPhysicsCollisionEvent, RigidbodyGrabber } from '../index'; /** * A helper component used to emit rigidbody behavior events. * * Child this component to a component with a Rigidbody behavior to emit events. * This is useful for creating behaviors that respond to rigidbody events. * @zparents three/Object3D/** * @ztags Physics/RigidbodyEventEmitter * @zgroup Physics * @zicon event_list * @zcomponent */ export declare class RigidbodyEventEmitter extends Component { /** * Emitted when a RigidbodyGrabber is within range of the object. * @zprop */ onGrabInRange: Event<[RigidbodyGrabber]>; /** * Emitted when a RigidbodyGrabber is within range of the object. * @zprop */ onGrabOutOfRange: Event<[RigidbodyGrabber]>; /** * Emit when a RigidbodyGrabber grabs the object. * @zprop */ onGrab: Event<[RigidbodyGrabber]>; /** * Emitted when a RigidbodyGrabber releases the object. * @zprop */ onRelease: Event<[RigidbodyGrabber]>; /** * @zprop */ onCollision: Event<[IPhysicsCollisionEvent]>; constructor(contextManager: ContextManager, props: {}); }