I'm trying to make a projectile and I don't know how to do it


var PProjectile = pc.createScript('pProjectile');

// initialize code called once per entity
PProjectile.prototype.initialize = function() {

// update code called every frame
PlayerProjectile.prototype.update = (function )
// swap method called for script hot-reloading
// inherit your script state here
// PProjectile.prototype.swap = function(old) { };

// to learn more about script anatomy, please read:
// https://developer.playcanvas.com/en/user-manual/scripting/

@Jacob_Jack Are you trying to shoot this projectile using physics? The code above does not offer much information about application. Could you provide some more information? Maybe this example will help.


Still haven’t gotten the coding part down yet.(PlayCanvas | HTML5 Game Engine)