I’m spawning an object using python and i want it to be located next to the floor. When doing it via blueprint i use a Line Trace Component which is also available for the python API.
I am using it the following way:
trace_start = unreal.Vector(0,0,0)
trace_end = unreal.Vector(0,0,1000)
kk=unreal.PrimitiveComponent.line_trace_component(trace_start,trace_end,False,True,False)
But i get the following error:
TypeError: descriptor 'line_trace_component' requires a 'PrimitiveComponent' object but received a 'Vector'
Why is that?
regards
Roberto