Remember me
You are here: HomeForumCyberix3D ForumUpdatesDesktop app
Welcome, Guest
Username: Password: Remember me

TOPIC: Measure distance

Measure distance 6 years 9 months ago #1477

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 700
  • Thank you received: 694
Hello,
You can measure distance between two objects using the Math.distance(x1,y1,z1,x2,y2,z2) function.
Here is an example:
www.gamemaker3d.com/player?pid=01635755
Regards,
Cyebrix3D team
The administrator has disabled public write access.
The following user(s) said Thank You: Symbiotic Interactives, Interactive games

Measure distance 6 years 9 months ago #1478

  • Hamish-Kirkman
  • Hamish-Kirkman's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 39
  • Thank you received: 2
If you can measure distance. Would it be possible to measure the speed of the car?
The administrator has disabled public write access.

Measure distance 6 years 9 months ago #1485

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 700
  • Thank you received: 694
Yes, You can use the Linear Velocity X, Y, Z of the car to determine it's speed.
Here is an example, it is not 100% accurate but it's good enough:
www.gamemaker3d.com/player?pid=01635836
Regards,
Cyberix3D team
The administrator has disabled public write access.
The following user(s) said Thank You: Hamish-Kirkman, Symbiotic Interactives, Interactive games

Measure distance 6 years 9 months ago #1490

  • Hamish-Kirkman
  • Hamish-Kirkman's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 39
  • Thank you received: 2
Thanks :cheer: :cheer:
The administrator has disabled public write access.

Measure distance 6 years 9 months ago #1494

  • Hamish-Kirkman
  • Hamish-Kirkman's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 39
  • Thank you received: 2
I have published a fuel and speed test which uses the distance and speed examples you gave me. It also has a fuel counter and fuel station to refill
www.gamemaker3d.com/player?pid=051110135891
The administrator has disabled public write access.
Time to create page: 0.100 seconds