Draw the Radar Sensor?

I was just wondering if there was a way to draw the cone of a radar sensor, even if its just 3 lines making a triangle would be fine.

Thanks in advance:)

You can make it visible by looking in the Game menu and Show Physics Visualization. If you want it in game, you will have to make a dummy object that approximates its shape but is set to no collision.

Sure you could, let me rig up a blend. s

I suppose you could also use drawLine?

I know about Physics visualization, This is more for in game then testing. :slight_smile: Thanks @agoose77, I look forward to it!

I can’t do much just yet, because there appears to be a bug with the sensor attributes. In the mean time you could use a mesh cone, with transparency or wireframe material.

ok, thanks for the help:)

Prof. Monster’s Realtime Visualizer Demos

By Monster

It shows the radar cone of one or more radar sensors.

Usage in all demos: <w>/<s> - move radar along Y
<left>/<right> - move test object along X

Demo A: Parented ConeScene: ParentedCones
Purpose:

  • useful when dealing with a single radar sensor
  • visible at design time


Usage:

  • Parent the cone to the object (the centers must match)
  • The orientation and size will automatically aligned by the cone (via Python Module: visualizer.showParentsRadar)

Demo B: Added ConesScene: AddedCones
Purpose:

  • useful when dealing with a multiple radar sensor
  • invisible at design time


Usage:- Place the cone mesh at an inactive layer (e.g. layer 2).
  • Trigger a Python Module: visualizer.addMyRadarCones
  • This controller has to be connected to an AddObjectActuator which adds a cone mesh.
  • The cone will be added and parented.
  • The orientation and size will automatically aligned.

To verify the cones are correct you can enable “show physics Visualizations”.

Have fun

Attachments

visualizer.blend (120 KB)