PhysicsBuilder
Sub-builder for physics configuration. Opened via BehaviorBuilder:Physics.
Call :Done() to return to the root BehaviorBuilder.
Functions
MaxDistance
Maximum distance in studs the bullet can travel before expiring.
Default: 500
MaxSpeed
Maximum speed in studs per second. Bullet terminates if speed exceeds this.
Default: math.huge (no cap)
MinSpeed
Minimum speed in studs per second. Bullet terminates when speed drops below this.
Default: 1
Gravity
Gravitational acceleration. Pass a negative-Y vector for downward gravity.
Any Vector3 is accepted and used as given: Vector3.zero disables drop entirely,
and upward or sideways vectors are applied as specified.
Default: Vector3.new(0, -workspace.Gravity, 0) (read at construction time)
Acceleration
Extra constant acceleration layered on top of gravity, e.g. rocket thrust.
Default: Vector3.zero
RaycastParams
RaycastParams used for all raycasts during this cast's lifetime.
Priority order, Vetra:Fire resolves params using:
BulletContext.RaycastParams, per-bullet filter (highest priority).Behavior.RaycastParams, this setter, if called.- Empty
RaycastParams.new(), catch-all fallback.
Overridden by BulletContext
If the BulletContext passed to Vetra:Fire has its own RaycastParams
set, it takes priority over this value. This setter acts as the
behavior-wide default when no per-bullet filter is provided.
Default: nil (not set, defers to BulletContext or the fallback)
CastFunction
Optional custom cast function replacing workspace:Raycast. Use for
Spherecast, Blockcast, or any custom raycast wrapper.
Signature: (origin: Vector3, direction: Vector3, params: RaycastParams) -> RaycastResult?
Serial solver only
Silently ignored by Vetra.newParallel(), functions cannot cross Actor
boundaries via message serialization.
Default: nil
BulletMass
Mass of the bullet in game units. Used by penetration and impact-force
calculations. Set to 0 to disable mass-based scaling.
Default: 0
Done
Returns the root BehaviorBuilder.