Click or drag to resize

CollisionObject_InputEvent Method

Accepts unhandled InputEvents. click_position is the clicked location in world space and click_normal is the normal vector extending from the clicked surface of the Shape at shape_idx. Connect to the input_event signal to easily pick up these events.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public virtual void _InputEvent(
	Object camera,
	InputEvent event,
	Vector3 clickPosition,
	Vector3 clickNormal,
	int shapeIdx
)

Parameters

camera
Type: GodotObject

[Missing <param name="camera"/> documentation for "M:Godot.CollisionObject._InputEvent(Godot.Object,Godot.InputEvent,Godot.Vector3,Godot.Vector3,System.Int32)"]

event
Type: GodotInputEvent

[Missing <param name="event"/> documentation for "M:Godot.CollisionObject._InputEvent(Godot.Object,Godot.InputEvent,Godot.Vector3,Godot.Vector3,System.Int32)"]

clickPosition
Type: GodotVector3

[Missing <param name="clickPosition"/> documentation for "M:Godot.CollisionObject._InputEvent(Godot.Object,Godot.InputEvent,Godot.Vector3,Godot.Vector3,System.Int32)"]

clickNormal
Type: GodotVector3

[Missing <param name="clickNormal"/> documentation for "M:Godot.CollisionObject._InputEvent(Godot.Object,Godot.InputEvent,Godot.Vector3,Godot.Vector3,System.Int32)"]

shapeIdx
Type: SystemInt32

[Missing <param name="shapeIdx"/> documentation for "M:Godot.CollisionObject._InputEvent(Godot.Object,Godot.InputEvent,Godot.Vector3,Godot.Vector3,System.Int32)"]

See Also