mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix for [#31813] "bge.types.KX_RadarSensor incorrect attributes" reported by Monster.
KX_RadarSensor.angle was returning the angle that was used to construct Bullet's physics shape, which is calculated from the logic brick gui. KX_RadarSensor.angle now recalculates the original value from the gui. However, m_coneradius isn't actually used by KX_RadarSensor that I can see, so it might be better to just assign the original angle to m_coneradius instead of the calculated value. I've also made KX_RadarSensor.angle read-only, since setting m_coneradius does not appear to have any affect, which means writing to KX_RadarSensor.angle never worked properly.
This commit is contained in:
parent
cae6873bc6
commit
c07c572373
3 changed files with 13 additions and 2 deletions
|
|
@ -2692,7 +2692,7 @@ Game Types (bge.types)
|
|||
|
||||
The angle of the cone (in degrees) with which to test.
|
||||
|
||||
:type: float from 0 to 360
|
||||
:type: float
|
||||
|
||||
.. attribute:: axis
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue