UnitySteer use with JS?

Hi :slight_smile:

I’m wondering if there are any UnitySteer tutorials or examples(besides the demo project it comes with). I’m still kind of feeling everything out and can’t even figure out how to call UnitySteer (C#) in javascript scripts.

IF anyone could offer me up an example or two to get me started I would appreciate it. Even just a few lines of JS that instances MovesToPoint should be enough for me to get going. Everything I try just returns, ‘MovesToPoint’ is not a member of blah blah.

Thanks!

Koko

okay I figured out the JS part. Have to address the classes in the namespace outlined in the unitysteer libraries. ie UnitySteer.Vehicles.MovesToPoint(…).

Would still like to know if there are any JS examples out the as IAm c# defective :slight_smile:

Here is my new main question for this thread!

In the UnitySteer example script TestMoveToPointObstacles, the script sets up the class as follows:

public class TestMoveToPointObstacles : VehicleBehaviour, IRadarReceiver {

//...

This apparently sets up the object as a new VehicleBehaviour with an IRadarReceiver interface.

I cannot figure out how to implement the same functionality in JS. The Radar script wont run unless there is an IRadarReceiver present, it uses GetComponent(IRadarReceiver). I can’t figure out how to make my js class a component addressable by IRadarReceiver.

Koko