Jump to content

[SOLVED] CSG.toMesh works in Javascript not in Typescript


JohnK
 Share

Recommended Posts

Working on the new multi-user challenge using Endel's template and thank you to Endel for helping me use it. To start with I built a single user project locally using Javascript and everything works well. On transferring the code to main.ts in client folder in the template I get  the following error for line 94, other lines OK

main.ts:94:15
Supplied parameters do not match any signature of call target.

 

code is

 92  var subCSG = baseCSG.subtract(drillsCSG);
 93
 94  holder[i] = subCSG.toMesh("holder" + i, new BABYLON.StandardMaterial("mat", scene), scene);

 

so line 94 works OK in Javascript but not in Typescript - any idea why?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...