Hi, there forum,
No matter how i get the PhysObj from the trace.Entity it returns an invalid physics object.
I am calling this line in “TOOL:DrawHUD()”, where my trace is
trace = self:GetOwner():GetEyeTrace()
local phy = trace.Entity:GetPhysicsObject() print(phy)
Console returns: “PhysObject”
after that i can’t call like phy:GetMass()
Tried to use invalid object (type IPhysicsObject) (Object was NULL or not of the right type)
Why is that happening ?