mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-14 04:03:46 +00:00
obj-select -- object selection functionality
is-camera -- Adds a test for determining if object is a camera. cam-speed -- added method for getting the camera movement speed. zoned-in -- connection is flagged as "zoned-in" when client is fully connected and user can interact with it.
This commit is contained in:
parent
d4c2eeea98
commit
fcce9be33c
7 changed files with 250 additions and 1 deletions
|
|
@ -5885,7 +5885,12 @@ void Player::applyImpulse(const Point3F&,const VectorF& vec)
|
|||
|
||||
bool Player::castRay(const Point3F &start, const Point3F &end, RayInfo* info)
|
||||
{
|
||||
if (getDamageState() != Enabled)
|
||||
// In standard Torque there's a rather brute force culling of all
|
||||
// non-enabled players (corpses) from the ray cast. But, to
|
||||
// demonstrate a resurrection spell, we need corpses to be
|
||||
// selectable, so this code change allows consideration of corpses
|
||||
// in the ray cast if corpsesHiddenFromRayCast is set to false.
|
||||
if (sCorpsesHiddenFromRayCast && getDamageState() != Enabled)
|
||||
return false;
|
||||
|
||||
// Collide against bounding box. Need at least this for the editor.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue