Game Development Community

OnThrow Distance?

by Chris "C2" Byars · in Torque Game Engine · 05/08/2006 (4:48 pm) · 2 replies

Can't seem to find any information on this anywhere, but how does one set the distance for how far a thrown (dropped) item launches? At the moment when I drop my weapon, it launches forward about 40 feet. I just want it to drop like a foot away.

Thanks in advance.

#1
05/08/2006 (5:00 pm)
Assuming the stock inventory code, look in inventory.cs for ShapeBase::throwObject(%this,%obj) and all the code for %throwForce and such is at the top.
#2
05/08/2006 (5:10 pm)
How did I miss that. Been skimming through that script a bit and didn't even see it. :) Thanks.