This patch adds the posibility to modify the radar cone's distance and angle attributes during the runtime through BGE python.
A example can be found here:
Credit for this patch goes to @Kseniya Halezova (blenderprowlee) (Kseniya Halezova) also.
Differential D951
BGE: Makes distance and angle python attributes for Radar Sensor writables Authored by Jorge Bernal (lordloki) on Dec 22 2014, 7:11 PM.
Details
This patch adds the posibility to modify the radar cone's distance and angle attributes during the runtime through BGE python. A example can be found here: Credit for this patch goes to @Kseniya Halezova (blenderprowlee) (Kseniya Halezova) also.
Diff Detail
Event TimelineComment Actions I really don't like the idea of modifying Bullet code. If this absolutely has to be done, we should make sure that:
Also, there may be a better place to pull in FLT_MAX from (possibly a BLI header). Comment Actions I have added setheight patch in the bullet patch directory for futher updates. Also, I uploaded the patch over bullet github repository: https://github.com/bulletphysics/bullet3/issues/304 It wasn't possible to do a pull request over bullet sources because it seems that under current bullet3 a collision cone shape doesn't exit even. Taking this into account I don't know if this change in our bullet sources will be acceptable Comment Actions Seems useful but would really want Bullet guys to have the patch applied first. The reason for that is we shouldn't lock ourselves into situation when stuff we need for new functionality is not in an upstream version of library and needs constant backporting. What is also bad with this patch is that it'll break compilation with system bullet which is bad thing to do. Comment Actions For your info, I did a pull request https://github.com/bulletphysics/bullet3/pull/385 Comment Actions No news from bullet part since May. If we don't have feedback "soon", could we modify our bullet sources? Comment Actions API documentation changes are missing.
Comment Actions There is no need to modify API documentation as both attributes were marked as read-write before. Comment Actions Closing. Changes to bullet were committed for current bullet release. I will work on it after UPBGE merge. | ||||||||||||||||||||||