init(targetEntity:linearImpulse:)
Creates a new impulse action.
Declaration
init(targetEntity: ActionEntityResolution = .sourceEntity, linearImpulse: SIMD3<Float> = [0, 1, 0])Parameters
- targetEntity:
The entity that the impulse acts upon.
- linearImpulse:
The impulse in newton seconds (in physics simulation space).