Author Topic: Collision boxes  (Read 840 times)

Phathry25

  • Full Member
  • ***
  • Posts: 210
    • View Profile
Collision boxes
« on: February 16, 2016, 12:05:00 AM »
What is the syntax used here?

Code: [Select]
;coll
;{
; chassis
; {
; numboxes = 5
; box0 = 0, 0.35, 0.02, 1.8, 0.7, 3.26, 0, 0 ; main
; box1 = 0, 0.26, 1.8, 1, 0.5, 0.4, 0, 0 ; front bumper
; box2 = 0, 0.53, -1.65, 1.1, 0.7, 0.6, 0, 0 ; rear bumper
; box3 = 0, 1.17, -0.67, 1.1, 0.1, 1.85, 0.0, 0 ; roof
; box4 = 0, 1.25, 0.02, 0.5, 0.1, 0.5, -0.2, 0 ; roof air-intake
; }
;}

Yohji

  • Full Member
  • ***
  • Posts: 210
  • GP Bikes Japan -akaitori-
    • View Profile
    • Japan GP Bikes -akaitori-
Re: Collision boxes
« Reply #1 on: February 16, 2016, 08:12:42 AM »
it's for collision

Obelix90

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Collision boxes
« Reply #2 on: February 16, 2016, 10:38:11 AM »
Hi,
it's for collision
;D

box0 = 0, 0.35, 0.02, 1.8, 0.7, 3.26, 0, 0
-->
"0":      position (left/right)
"0.35": position (up/down)
"0.02": position (front/rear)
"1.8":   width
"0.7":   height
"3.26": length
not sure about the last two values, but I think it's the rotation of the box.

HornetMaX

  • Hero Member
  • *****
  • Posts: 5779
    • View Profile
Re: Collision boxes
« Reply #3 on: February 16, 2016, 01:05:36 PM »
Hi,
it's for collision
;D
Or for boxes ;D

not sure about the last two values, but I think it's the rotation of the box.
If I recall correctly, BikeEd shows the collisions boxes/spheres, should be easy to check that.

Phathry25

  • Full Member
  • ***
  • Posts: 210
    • View Profile
Re: Collision boxes
« Reply #4 on: February 16, 2016, 04:32:39 PM »
Hi,

box0 = 0, 0.35, 0.02, 1.8, 0.7, 3.26, 0, 0
-->
"0":      position (left/right)
"0.35": position (up/down)
"0.02": position (front/rear)
"1.8":   width
"0.7":   height
"3.26": length
not sure about the last two values, but I think it's the rotation of the box.

Thank you!