User Tag List

Results 1 to 5 of 5

Thread: How to find the terrain elevation below player?

  1. #1
    Clicker

    Fusion 2.5 (Steam)HTML5 Export Module (Steam)

    Join Date
    Apr 2017
    Location
    Germany
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to find the terrain elevation below player?

    Hello! I'm making a game where the player is supposed to be always hovering slightly above the terrain object, not sinking into it.

    I thought checking for camera collisions against the terrain node would work, but for that it seems like I have to activate the terrain's collision ("Use Collision"),
    which KILLSthe performance - is there any other way, like, raycasting?

    In this example by Patrice Cervellin the car stays on the road in the compiled .exe, but not in the .mfa: https://clickstore.clickteam.com/car_travel_firefly

    Help would be much appreciated!

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2016
    Posts
    450
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    there is ray tracing ( called raypick ) but there is also a get height at x,z of a terrain which is much easier

  3. #3
    Clicker

    Fusion 2.5 (Steam)HTML5 Export Module (Steam)

    Join Date
    Apr 2017
    Location
    Germany
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah! Thanks for the quick reply! Hmm, I see no "get height at..." function, could it be this one?

    image_2022-01-05_172248.png

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2016
    Posts
    450
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    correct, yes

  5. #5
    Clicker

    Fusion 2.5 (Steam)HTML5 Export Module (Steam)

    Join Date
    Apr 2017
    Location
    Germany
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you, you've been a big help!

Similar Threads

  1. Find position of click on terrain
    By waffles in forum Firefly
    Replies: 5
    Last Post: 29th January 2018, 05:53 AM
  2. Destructible terrain on iOS
    By Triclyde in forum iOS Export Module Version 2.0
    Replies: 16
    Last Post: 30th April 2012, 06:19 PM
  3. Rough terrain
    By ExterminationNat in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 10th June 2011, 11:03 AM
  4. Destructible terrain, how?
    By chrilley in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 24th August 2009, 04:24 PM
  5. Making enemies find player
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 13th January 2007, 02:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •