Jump to content

Selecting a node via mouse, then sending it to a specific location in 3D space (no ground)


photo

Recommended Posts

Posted

I am building a 3D space fleet game using Unigine version 2.20.0.1.  

Assuming no editor, what is the correct way to select a spawned node via mouse (left click) and then send it towards a destination within 3D space (right click)?

I believe I have to create a component that marks the item as moveable and then assign it to the node. I have created components before, but not one that specifically indicates an item is selectable/moveable. Is there any special command to use here? And given that I am not working with meshes, but node references to DAE files, how do I mark them as dynamic so they can be moveable?

Confirmation on how this component should be worded and assigned to the given node would be helpful.

What I need to do is:

  1. Be able to left-click and/or left-click drag a node (or a box around a series of nodes) spawned from DAE files (I am currently using a node reference to point to the original DAE, but am unsure if there is a more direct way to convert this to a mesh or if that even needs to happen)
  2. Have a selection box surround the chosen item(s)
  3. Be able to right click somewhere in 3D space (optionally holding the shift key in order to direct along the Z axis) and send the ships to that location with a further left click

Here is an illustration of the behavior I am desiring:

image.png.e9299947028955a33211cb009eeb36ab.png

Any assistance would be greatly appreciated!

×
×
  • Create New...