'Feature' Request: GetEntityRadius()

Blitz3D Forums/Blitz3D Programming/'Feature' Request: GetEntityRadius()

N(Posted 2004) [#1]
Topic says it all. I could use this to make using certain aspects of my particle system much easier (setting the radius of deflectors, emitters, etc.)

Also, I'd of course like to have GetEntityCube() too, so I can retrieve those values as well. Maybe add the extra functions CubeMinX(),CubeMaxY(), etc. to get the values.


eBusiness(Posted 2004) [#2]
You can still store these values when you set them, but of course these functions would cut out a small amount of work.


Vertex(Posted 2004) [#3]
Hi!
232 | Entityradius X
236 | Entityradius Y
240 | Entityradius Z
264 | EntityBox X
268 | EntityBox Y
272 | EntityBox Z
Add to the Entityhandle one of this values left in the table, and you can get the floatvalue. use this:
.lib "kernel32.dll"
apiRtlMoveMemory%(Destination,Source*,Length) : "RtlMoveMemory"
apiRtlMoveMemory2%(Destination*,Source,Length) : "RtlMoveMemory"

To get EntityBox X, Y and Z you must do this:
vEntityBox = CreateBank(12)
apiRtlMoveMemory2(vEntityBox, MyEntity+264, 12)
DebugLog "EntityBox X: "+PeekFloat#(vEntityBox, 0)
DebugLog "EntityBox Y: "+PeekFloat#(vEntityBox, 4)
DebugLog "EntityBox Z: "+PeekFloat#(vEntityBox, 8)

cu olli


eBusiness(Posted 2004) [#4]
Can you use this method to pick and poke video memory too?


N(Posted 2004) [#5]
Vertex: Thanks, I really should try screwing around with these properties some time.


Vertex(Posted 2004) [#6]
eBusiness : Yes, they are hacking work around blitz to get a acces to any good thinks like direct video acces(verry fast in blitz2d to compute alphablending in realtime), meshtmodification etc.

Noel R. Cower: np

cu olli